My JCL is:
//STEP002 EXEC PGM=SORT
//SORTIN01 DD DSN=file1,DISP=SHR
//SORTIN02 DD DSN=file2,DISP=SHR
//SORTOUT DD DSN=outfile,
//SYSOUT DD SYSOUT=*
//SYSIN DD *
at 24 second fiels gets start having length 10
Following is the error:
WER068A OUT OF SEQ SORTIN01 , BLOCK 2
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
My file sortin01 file is similar wih differnt data which i shown in the above example.
I tried another approach which works fine:
1) in first step: I merged the 2 files on 1st field which is having no duplication
2) in second step: I sort the merged file on second field which is having duplication with control statement shown above with sort field.
But I am wondered why its not doing sorting and merging in one go with 2nd field as control.