How to sort multiple output files differently.



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

How to sort multiple output files differently.

Postby jself » Fri Jul 24, 2015 8:05 pm

Hi,
I'm trying to sort multiple output files differently.
for ex:
FILE 1 and file 3 can by sort fields=copy.
FILE 2 - I would like to sort fields=21,10,a
thanks for reviewing.

//SORT05 EXEC PGM=SORT
//SORTIN DD DSN=INPUT FILE,
// DISP=SHR
//SORTOF1 DD DSN=IRSTAPEA,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SORTOF2 DD DSN=IRSTAPES,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SORTOF3 DD DSN=IRSTAPCF,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SYSIN DD DSN=*
SORT FIELDS=COPY
OUTFIL FILES=1, /*FILE WITH A RECORD
INCLUDE=(1,1,CH,EQ,C'A')
OUTFIL FILES=2, /*FILE WITH B RECORDS
INCLUDE=(1,1,CH,EQ,C'B')
OUTFIL FILES=3, /*FILE WITH C AND F RECORDS
INCLUDE=(1,1,CH,EQ,C'C',OR,1,1,CH,EQ,C'F')
END







. . . . . . . . . . . . . . . . . . . . . . . . . . .
jself
 
Posts: 10
Joined: Thu Mar 19, 2015 7:18 pm
Has thanked: 1 time
Been thanked: 0 time

Re: How to sort multiple output files differently.

Postby Terry Heinze » Mon Jul 27, 2015 7:08 pm

In the future, please use Code tags for readability.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: How to sort multiple output files differently.

Postby BillyBoyo » Mon Jul 27, 2015 8:59 pm

This has been discussed recently in the DFSORT part of the forum. The same technique will apply to SyncSORT.

dfsort-icetool-icegener/topic10624.html#p53158

These users thanked the author BillyBoyo for the post:
jself (Mon Jul 27, 2015 11:40 pm)
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