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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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