Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Job is abending while Merging two datasets USING SORT-U0016

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Job is abending while Merging two datasets USING SORT-U0016
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    Post subject: Re: Job is abending while Merging two datasets USING SORT-U0
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us