Page 1 of 1

Multiple input files to multiple output files

PostPosted: Wed Dec 09, 2009 4:55 am
by rajakumaran
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

Re: Multiple input files to multiple output files

PostPosted: Wed Dec 09, 2009 10:02 pm
by Alissa Margulies
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.