Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us