Hello All,
I have 2 files,
File1 is the JCL program with LRECL 80
Eg:-
//JOBCARD XXXXXXXXXXXXXXXXXX
//SYSERROR DD SYSOUT=*
//INPUTDD DD DISP=SHR,DSN=DB2PROD.TXXX.DSTP00AC.P001.G0680V00
//$ORTPARM DD DISP=SHR,DSN=XXXXXXX.TTTTTT.EEE
//SYSIN DD *
XYZ
QWET
/*
File 2 is the PS file with LRECL = 80 with GDG file names inside it.
Eg:-
DB2PROD.TXXX.DSTP01AC.P000.G0692V00
DB2PROD.TXXX.DSTP01AD.P000.G2009V00
OUTPUT should be some what like below.
//JOBCARD XXXXXXXXXXXXXXXXXX
//SYSERROR DD SYSOUT=*
//INPUTDD DD DISP=SHR,DSN=DB2PROD.TXXX.DSTP01AC.P000.G0692V00
//$ORTPARM DD DISP=SHR,DSN=XXXXXXX.TTTTTT.EEE
//SYSIN DD *
XYZ
QWET
/*
Note:-
With GDG Name of file 1 is change with new GDG name from file 2 without changing the rest fields in file 1.
Regards,
Sumith