I have a request to copy, set of alternate records from 2 PS file to another PS file using Sort JCl.
All three files have record length 80 and fixed record format.
Am using Sort JCl to achieve this.With the help of this forum i could copy the alternative records to 3rd PS file, but am struck with copying set of alternate records as shown in the below example. Any suggestion/help is really appreciated.
Example:
Input File1:
Record1
Record2
Record3
Record4
Record5
Record6
Record7
Record8
Record9
Record10
Input File2:
Record11
Record12
Record13
Record14
Record15
Record16
Record17
Record18
Record19
Record20
Ouput File3:
Record1
Record2
Record3
Record11
Record12
Record4
Record5
Record6
Record13
Record14
Record7
Record8
Record9
Record15
Record16
....
....
<EOM>