Multiple input files to multiple output files



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

Multiple input files to multiple output files

Postby rajakumaran » Wed Dec 09, 2009 4:55 am

Hi,

I have multiple input files and I want to copy the data to multiple output files based on some conditions. I dont want to use the same sort control member and write 10 steps in the JCL. Is there a way to accomplish this in a single step? I am using SYNCSORT FOR Z/OS 1.3.0.3R. Please see an example below.

SORT FIELDS=(1,9,CH,A)

OUTFIL FNAMES=SORTOV1B,
INCLUDE=(47,1,CH,EQ,C'Y')
OUTFIL FNAMES=SORTOV1C,
INCLUDE=(48,1,CH,EQ,C'Y')
OUTFIL FNAMES=SORTOV1K,
INCLUDE=(49,1,CH,EQ,C'Y')

I have to execute the above sort for 10 different input files and they all should be output to 30 different files. Can i concatenate the 10 input files and write to 30 output files using 1 sort card?

Thanks,
Rajakumaran
rajakumaran
 
Posts: 1
Joined: Wed Dec 09, 2009 4:42 am
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple input files to multiple output files

Postby Alissa Margulies » Wed Dec 09, 2009 10:02 pm

If there is a unique field in each of the input files to identify which data set the records are coming from, then yes, you can concatenate the files. If not, then you will either need to preprocess the data sets to include one, or run the job 10 times, each with a different SORTIN data set.
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: 3 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post