Output packed desimal [message #39502] |
Fri, 19 July 2002 12:24 |
Shanae
Messages: 2 Registered: July 2002
|
Junior Member |
|
|
I am using the utl_file function to create a flat file read in by a COBOL program is expecting numbers to be packed decimal and character fields to be in hex. I have gotten the character converted to hex, but I can't figure out how to convert the numbers so they are packed in the file. Any ideas would be greatly appreciated.
Thanks
Shane
|
|
|
|
Re: Output packed desimal [message #39519 is a reply to message #39502] |
Mon, 22 July 2002 05:34 |
Shanae
Messages: 2 Registered: July 2002
|
Junior Member |
|
|
packed decimal format: two digits per byte, except for the last byte, which contains a digit and sign.
therfor the number 12345 is stored as in hex as "12 34 5C" rather than "31 32 33 34 35"
|
|
|