Is it possible to use SEQNUM on TRAILER1?



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

Re: Is it possible to use SEQNUM on TRAILER1?

Postby ranga_subham » Thu Nov 27, 2008 3:24 pm

Ok. I will go by what Alissa suggested. I will copy each file a temporary file with a letter from A to J assigned on each record on 1 to 10 files. So, I will have 10 temporary files with unique id now. What is next?

Please let me know the code to go further.

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

Re: Re: Is it possible to use SEQNUM on TRAILER1?

 

Re: Is it possible to use SEQNUM on TRAILER1?

Postby Alissa Margulies » Tue Dec 02, 2008 12:50 am

Assuming the original files were FB/80, and with the identifying character added at the end of each record, they are now FB/81, here is an example:

//STEP1 EXEC PGM=SORT
//SYSOUT  DD SYSOUT=*
//SORTIN  DD DISP=SHR,DSN=FILE1
//        DD DISP=SHR,DSN=FILE2
//        DD DISP=SHR,DSN=FILE3
//        DD DISP=SHR,DSN=FILE4
//        DD DISP=SHR,DSN=FILE5
//        DD DISP=SHR,DSN=FILE6
//        DD DISP=SHR,DSN=FILE7
//        DD DISP=SHR,DSN=FILE8
//        DD DISP=SHR,DSN=FILE9
//        DD DISP=SHR,DSN=FILE10
//SORTOUT DD DSN=OUTPUT.FILE,DISP=...
//SYSIN   DD *                                     
   SORT FIELDS=(81,1,CH,A)                         
   OUTFIL FILES=OUT,SECTIONS=(81,1,                 
     TRAILER3=(COUNT=(EDIT=(TTTTTTTTTTT)),1X,81,1)),
     REMOVECC,NODETAIL                           
/*     


The output produced would be as follows:
0000000010 A
0000000020 B
0000000030 C 
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: Is it possible to use SEQNUM on TRAILER1?

Postby ranga_subham » Tue Dec 02, 2008 3:34 pm

Thank you very much for the help. :D

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

Previous

Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post