View previous topic :: View next topic
Author
Message
Sahoo New User Joined: 08 Jun 2006Posts: 53
Hi
I am getting U0016 abend with following message while merging two datasets using SYNCSORT.
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER109I MERGE INPUT : TYPE=F; LRECL= 133
WER110I SORTOUT : RECFM=F ; LRECL= 133; BLKSIZE= 133
WER068A OUT OF SEQ SORTIN01 , BLOCK 1
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
The JCL that i used is given below.
Code:
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN01 DD DSN=E0069AR.SORTOUT,DISP=SHR
//SORTIN02 DD DSN=E0069AR.SORTOUT2,DISP=SHR
//SORTOUT DD DSN=E0069AR.SORTOUT3,DISP=(NEW,CATLG),
// SPACE=(TRK,(10,10),RLSE),UNIT=SMS,DCB=(RECFM=F,BLKSIZE=0)
//SYSIN DD *
MERGE FIELDS=(1,8,CH,A)
/*
DCB parameters for both the inputs are same.(FB,133)
Please let me know what could be the error
Back to top
cpuhawg Active User Joined: 14 Jun 2006Posts: 331 Location: Jacksonville, FL
If you are merging two files, both of those files would need to be previously sorted in the order they are being merged in. If you sorted SORTIN01 and SORTIN02 with SORT FIELDS=(1,8,CH,A) before the MERGE, a record would not be out of sequence.
Why not concatenate the two files together and SORT them instead of MERGING them?
Code:
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=E0069AR.SORTOUT,DISP=SHR
// DD DSN=E0069AR.SORTOUT2,DISP=SHR
//SORTOUT DD DSN=E0069AR.SORTOUT3,DISP=(NEW,CATLG),
// SPACE=(TRK,(10,10),RLSE),UNIT=SMS,DCB=(RECFM=F,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=(1,8,CH,A)
/*
Back to top
Please enable JavaScript!