Page 1 of 1

Replacing PS name with new name

PostPosted: Mon Feb 13, 2012 7:43 pm
by vamsyk9
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.

Re: Replacing PS name with new name

PostPosted: Mon Feb 13, 2012 7:51 pm
by NicC
Just type it in manually - you would have done all of them by now.

If you are having a problem using sort to do your typing for you why did you post in the JCL section of the forum and not the appropriate sort section of the forum? Also, not showing what you have tried and the result obtained does not help anyone resolve your problem.

Re: Replacing PS name with new name

PostPosted: Mon Feb 13, 2012 7:57 pm
by vamsyk9
Sorry Nic, I am trying to create the automatic job which should pick the latest versions and run automatically.

Re: Replacing PS name with new name

PostPosted: Mon Feb 13, 2012 7:59 pm
by enrico-sorichetti
I am trying to create the automatic job which should pick the latest versions and run automatically.


what would be wrong in using <gdgname>(0) ???

Re: Replacing PS name with new name

PostPosted: Mon Feb 13, 2012 8:02 pm
by NicC
Topic restarted in DFSORT section