Need help on convert in SORT



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Need help on convert in SORT

Postby kiran_wiproblr » Sun Apr 29, 2012 9:39 pm

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
kiran_wiproblr
 
Posts: 21
Joined: Fri Feb 10, 2012 11:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need help on convert in SORT

Postby BillyBoyo » Sun Apr 29, 2012 10:20 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post