Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Programming languages > AIX COBOL and PACKED DECIMALs (ASCII)
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 8th April 23:36
mani_paul
programming
Mombu User
 
Join Date: Apr 2009
Location: FL, USA
Posts: 0
mani_paul is on a distinguished road
Default 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
mani_paul is offline   Reply With Quote


 


Reply


Thread Tools
Display Modes




666