IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job is abending while Merging two datasets USING SORT-U0016


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Sat Jul 08, 2006 12:04 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Sat Jul 08, 2006 6:24 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top