Convert Packet decimals comp-3 and comp-6

JosepM jmyepes at mac.com
Thu May 5 12:36:20 EDT 2011


Hi,

I need to read a file from a Cobol application and import the data files.
I have the file description but I don't have idea how convert the decimals
fields.

01 NAME PIC X(30) --> This I guess is 30 chars
02 CODE PIC 9(5) COMP-6 --> This is five digits with packet decimal format.
Comp-3 stores data in a BCD -- binary coded decimal -- format with the sign
after the least significant digit.

Any help to handle this formats?


Salut,
Josep 



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Convert-Packet-decimals-comp-3-and-comp-6-tp3498822p3498822.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list