SORT two files in a single step.
Posted: Sat Sep 10, 2016 8:35 pm
Hi,
I need help in sorting two datasets, with same sort condition. After SORT I want to write the two different corresponding OUTPUT files. But the catch is, I want to do it in a single step than in two steps. So I have the following condistions:
Input dataset 1: LRECL = 80 and RECFM=FB
Input dataset 2: LRECL = 100, RECFM=FB
Sort condition to be used is sort fields=(1,6,CH,A)
OUTPUT 1: LRECL = 80, RECFM=FB
OUTPUT 2: LRECL = 100 , RECFM=FB
I know I can do it in two steps but if I want to do it in a single step, how can I do this? Please help.
I need help in sorting two datasets, with same sort condition. After SORT I want to write the two different corresponding OUTPUT files. But the catch is, I want to do it in a single step than in two steps. So I have the following condistions:
Input dataset 1: LRECL = 80 and RECFM=FB
Input dataset 2: LRECL = 100, RECFM=FB
Sort condition to be used is sort fields=(1,6,CH,A)
OUTPUT 1: LRECL = 80, RECFM=FB
OUTPUT 2: LRECL = 100 , RECFM=FB
I know I can do it in two steps but if I want to do it in a single step, how can I do this? Please help.