by shiitiizz » Wed Dec 12, 2012 3:52 pm
Hi,
I am trying to read the header of prev version of GDG File and increment the current version header as below
File 1 is prev version of file having header as
HEADERREDAEHOPERT ID2012-12-12-05.14.53.0000000001 ( From Col 1 to Col 50 )
File 2 is current version having header as ( From Col 1 to Col 46 )
HEADERREDAEHOPERT ID2012-12-12-05.14.53.000000
I need to read col 47 to 50 of File1 and update the same in File 2 at Col 47.
Please find the job below
//STEP0002 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=FILE1,DISP=SHR
//SORTOUT DD DSN=&&REM,
// DISP=(NEW,PASS,DELETE),
// DCB=(RECFM=FB,LRECL=80),
// SPACE=(TRK,(2000,300),RLSE)
//SYSIN DD *
OPTION COPY,NULLOUT=RC4
OUTREC BUILD=(C'SEQ,C''',47,4,C'''',80:X)
//*
//STEP0003 EXEC PGM=SORT,COND=(4,EQ,STEP0002)
//SYSOUT DD SYSOUT=*
//SYMNAMES DD DSN=&&REM,DISP=SHR
//SORTIN DD DSN=FILE2,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC IFOUTLEN=536,IFTHEN=(WHEN=INIT,OVERLAY=(537:SEQNUM,8,PD)),
IFTHEN=(WHEN=(537,8,PD,EQ,1),OVERLAY=(47:SEQ))
//*
On executing this job am getting below error
WER466A -SYMNAMES ERRORS FOUND
WER466A indicates that errors were found in the symbols definitions in the SYMNAMES dataset
Kindly help to resolve the issue, is there a naming convention to be followed for symname dataset?
File 1 and File 2 are FB file, LRECL 536.