Page 1 of 2

Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:15 pm
by porwalrox
//STEP033  EXEC PGM=SORT                                   
//SYSOUT   DD SYSOUT=*                                     
//SORTIN   DD DSN=F6976SG1.ABCD.SCH1,DISP=SHR           
//SORTOUT  DD DSN=F6976SG1.ABCD.ALFA1.BKP2,DISP=SHR   
//SYSIN    DD *                                           
 SORT FIELDS=COPY,STOPAFT=1                               
 OUTREC OVERLAY=(1,4,131:86,19)                           
/*                                                         


Sortin and sortout both are vsam files. I have copied only one record from a vsam file to SORTOUT file.

I have to copy field from Sortin to sortout on the the desired position.

JESMSGLG:
IEF450I F6976ABT STEP033 - ABEND=S000 U0016 REASON=00000000  193               
        TIME=07.20.00                                                         
-F6976ABT          STEP033  U0016    136    .00    .00    .00   2484   0      0
IEF404I F6976ABT - ENDED - TIME=07.20.00                                       

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:23 pm
by porwalrox
Instead of OUTREC OVERLAY, OUTREC BUILD is working fine. but it is appending one more record to the sortout file.

I need only one record and have to overlay that record from Sortin file.

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:25 pm
by bodatrinadh
Show your sysout messages.

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:29 pm
by enrico-sorichetti
You did not give too much to work on,
what about posting the <sort> sysout ( WER.../ICE... messages ) ???

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:33 pm
by porwalrox
WER276B  SYSDIAG= 320949, 5989121, 5989121, 6138525               
WER164B  6,896K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B     0 BYTES RESERVE REQUESTED, 1,004K BYTES USED         
WER146B  20K BYTES OF EMERGENCY SPACE ALLOCATED                   
WER108I  SORTIN   : RECFM=V    ; LRECL=  1201; CISIZE = 12288     
WER073I  SORTIN   : DSNAME=F6976SG1.R3PROD.SCHED                 
WER237I  OUTREC RECORD LENGTH =  1205                             
WER110I  SORTOUT  : RECFM=V    ; LRECL=   145; CISIZE =  4096     
WER074I  SORTOUT  : DSNAME=F6976SG1.R3PROD.ALFAKEY.BKP2           
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                         
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                     

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:34 pm
by porwalrox
I have changed filename while posting.

F6976SG1.ABCD.SCH1 and F6976SG1.ABCD.ALFA1.BKP2

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:38 pm
by porwalrox
Hi enrico,

Complete Sysout message is:

SYNCSORT FOR Z/OS  1.4.0.1N    U.S. PATENTS: 4210961, 5117495   (C) 2010 SYNCS
                           100312: SYNCSORT Z/OS 1.4.01 ZY Z/OS  +SY70621   z/
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 25A86, MODEL 2817 709             LICE
SYSIN :                                                                       
 SORT FIELDS=COPY,STOPAFT=1                                                   
 OUTREC OVERLAY=(131:86,19)                                                   
WER276B  SYSDIAG= 320949, 5989121, 5989121, 6138525                           
WER164B  6,896K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,           
WER164B     0 BYTES RESERVE REQUESTED, 1,004K BYTES USED                     
WER146B  20K BYTES OF EMERGENCY SPACE ALLOCATED                               
WER108I  SORTIN   : RECFM=V    ; LRECL=  1201; CISIZE = 12288                 
WER073I  SORTIN   : DSNAME=F6976SG1.R3PROD.SCHED                             
WER237I  OUTREC RECORD LENGTH =  1205                                         
WER110I  SORTOUT  : RECFM=V    ; LRECL=   145; CISIZE =  4096                 
WER074I  SORTOUT  : DSNAME=F6976SG1.R3PROD.ALFAKEY.BKP2                       
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                                     
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                                 

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 5:55 pm
by bodatrinadh
FYI...You are using SYNCSORT...not DFSORT.
Your job abends because, your SORTOUT dataset has recl = 145 and your trying to add field which exceeds the original length.

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 6:13 pm
by porwalrox
Hi Badinath,

You are correct record length is different in Sortin and Sortout. but i need to take some field from sortin file and have to update the sortout file.

Is it possible? I am asking because OUTREC BUILD is working fine but OVERLAY isn't.

Re: Getting error by using OUTREC OVERLAY

PostPosted: Tue Jul 02, 2013 6:24 pm
by Robert Sample
You might want to start by thinking about what these messages in your output mean:
WER108I  SORTIN   : RECFM=V    ; LRECL=  1201; CISIZE = 12288                 
WER073I  SORTIN   : DSNAME=F6976SG1.R3PROD.SCHED                             
WER237I  OUTREC RECORD LENGTH =  1205                                         
WER110I  SORTOUT  : RECFM=V    ; LRECL=   145; CISIZE =  4096                 
WER074I  SORTOUT  : DSNAME=F6976SG1.R3PROD.ALFAKEY.BKP2                       
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL
especially the WER237I and WER110I messages.