Replacing PS name with new name



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Replacing PS name with new name

Postby vamsyk9 » Mon Feb 13, 2012 7:43 pm

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.
vamsyk9
 
Posts: 24
Joined: Mon Nov 28, 2011 7:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Replacing PS name with new name

Postby NicC » Mon Feb 13, 2012 7:51 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Replacing PS name with new name

Postby vamsyk9 » Mon Feb 13, 2012 7:57 pm

Sorry Nic, I am trying to create the automatic job which should pick the latest versions and run automatically.
vamsyk9
 
Posts: 24
Joined: Mon Nov 28, 2011 7:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Replacing PS name with new name

Postby enrico-sorichetti » Mon Feb 13, 2012 7:59 pm

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) ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Replacing PS name with new name

Postby NicC » Mon Feb 13, 2012 8:02 pm

Topic restarted in DFSORT section
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post