AIX COBOL and PACKED DECIMALs (ASCII)
Hi,
We are migrating from mainframe to AIX using AIX COBOL Compiler.
We are converting our EBCDIC datafiles (fixed length) to ASCII (fixed length) files. (e.g. S9(6)V(2) field data is being converted to ASCII as -00023000).
Our COBOL programs try to read this data as S9(6)V2(2) and move it to packed decimal field e.g. S9(6)V(2) COMP-3.
Code is compiled with ASCII(Native) option.
Program can read the data just fine but when moving it; it throw data exception error. I am told that location of sign is the reason. But I am NOT buying that 'coz in ASCII I would expect sign to be upfront.
I am looking for help here. Any help would be appreciated.
Thanks
Paul
|