Hi,
I am trying sort using joins to do the below scenario, but it is not giving of what i am expecting
File1
//GO.A DD DSN=NAME1.ORIGNAL,DISP=OLD
//GO.B DD DSN=XXX.NAME.G0403V00,DISP=SHR, \* need to change to new GDG
// DCB=BUFNO=32,UNIT=3490,
// XXX.NAME \*need to change with vol
//So on .. similar steps for all the files
File2
DISP=SHR,DSN=XXX.NAME.G0404V00 VOL=SER=(666666)
DISP=SHR,DSN=XXX.NAME1.G0407V00 VOL=SER=(666667,666665)
DISP=SHR,DSN=XXX.NAME2.G0403V00 VOL=SER=(666662)
DISP=SHR,DSN=XXX.NAME3.G0402V00 VOL=SER=(666661)
Output File should contain
//GO.A DD DSN=NAME1.ORIGNAL,DISP=OLD \* No change
//GO.B DD DSN=XXX.NAME.G0404V00,DISP=SHR, \*New file to be replaced
// DCB=BUFNO=32,UNIT=3490, \* no change
// VOL=SER=(666666) \*Need to replace the file name with vol as mentioned*
Any idea, which one can be better to do it.