In a Cobol program, we have a numeric field with attribute S9(5)V99 which is subfield of a record format XYZ.
The numeric field is populated with some data and it will be written into the flat file with record format XYZ.
When we have the positive value (Eg: 28 here). It is writing it as 0002800.
and when it have the negative value (Eg: -28 here). It is writing it as 000280}.
By looking at the data I came to know this.
If we want to know the exact value in the flat file. (positive or negative) How can we know through SQL query instead of writing the COBOL program again.
Thanks
The numeric field is populated with some data and it will be written into the flat file with record format XYZ.
When we have the positive value (Eg: 28 here). It is writing it as 0002800.
and when it have the negative value (Eg: -28 here). It is writing it as 000280}.
By looking at the data I came to know this.
If we want to know the exact value in the flat file. (positive or negative) How can we know through SQL query instead of writing the COBOL program again.
Thanks
Comment