in a single statement



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

in a single statement

Postby ranga_subham » Fri Oct 17, 2008 10:50 pm

Hi,

My SORT job is as shown below:

//STEP0001 EXEC PGM=SORT     
//SORTIN   DD *             
555555555EEEEEEEEEE         
111111111AAAAAAAAAA         
333333333CCCCCCCCCC         
222222222BBBBBBBBBB         
444444444DDDDDDDDDD         
/*                           
//SORTOUT  DD SYSOUT=*       
//SYSOUT   DD SYSOUT=*       
//SYSIN    DD *             
 SORT FIELDS=(1,2,ZD,A)     
 INREC OVERLAY=(5,2,C'CB')   
 OUTREC BUILD=(1,5,10,2,20:X)
/*                           


Output:

11CB1AA
22CB2BB
33CB3CC
44CB4DD
55CB5EE


I would like to know if the same can be achieve by either using INREC or OUTREC alone.

Thanks.
ranga_subham
 
Posts: 279
Joined: Fri Jul 18, 2008 7:46 pm
Has thanked: 0 time
Been thanked: 1 time

Re: in a single statement

 

Re: in a single statement

Postby Alissa Margulies » Mon Oct 20, 2008 9:43 pm

Try this:
//SYSIN DD *                             
   SORT FIELDS=(5,2,ZD,A)               
   OUTREC BUILD=(5,2,C'CB',5,1,10,2,20:X)
/*                                       
Alissa Margulies
Syncsort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Alissa Margulies
Global moderator
 
Posts: 369
Joined: Tue Feb 26, 2008 11:15 pm
Location: USA
Has thanked: 1 time
Been thanked: 1 time

Re: in a single statement

Postby ranga_subham » Mon Oct 20, 2008 10:05 pm

Thank you Alissa........... :D
ranga_subham
 
Posts: 279
Joined: Fri Jul 18, 2008 7:46 pm
Has thanked: 0 time
Been thanked: 1 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post