Page 1 of 1

Need help on convert in SORT

PostPosted: Sun Apr 29, 2012 9:39 pm
by kiran_wiproblr
Please help me.

How to convert value of S9(08)V9(2) (of COBOL variable) to ZD through SORT?

In one data set out put of S9(08)V9(2) value has been stored, this data set created by COBOL, but I need to convert value of S9(08)V9(2) to ZD by SORT to some other data set

Re: Need help on convert in SORT

PostPosted: Sun Apr 29, 2012 10:20 pm
by BillyBoyo
Not clear what you want. If the Cobol field is just PIC 9(8)V99 it is already a Zoned Decimal. If it is COMP-3 in the Cobol program, you can try something like this:

  INREC OVERLAY=(placeyouwantit:sourceposition,6,PD,TO=ZD,LENGTH=10)


Perhaps you can confirm by pasting the Cobol definition here, in the Code tags please.