Below is my JCL i used to achieve to copy alternate records from 2 different PS file to another PS file.
//SORTST EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//IN1 DD DISP=SHR,DSN=Input.FILE1
//IN2 DD DISP=SHR,DSN=Input.FILE2
//SORTOUT DD DISP=SHR,DSN=Output.FILE3,
//SYSIN DD *
//JNF1CNTL DD *
//JNF2CNTL DD *
saveragu wrote: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.