Page 3 of 3

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 4:28 pm
by enrico-sorichetti
You are not answering my question, U are simply wasting my time.that is my requirement,

if You are not satisfied with the way we try to help You,
nobody is forcing You to keep using this Forum nor preventing You from going somewhere else...
but You are <warned>, none of the other forums is permissive as this one as far as attitude is concerned

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 4:35 pm
by vamsyk9
Billy Boyo

Hi, Thanks for the above. Could you please explain in detail as i am not able to get it.

Enrico

Apologise for that, But i am under pressure to do so..

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 5:03 pm
by BillyBoyo
You need to prepar an outline/skeleton piece of JCL.

//somename dd dsn=<i want to replace dsn1>,
// otherstuffneededfromddonmultiplelinesifnecessary,
// vol=ser=<i want to replace vols1>

For each DD statement requiring updating, the markers need to be unique with respect to the actual value required for replacement. If you want the same group of vols, or same dsn, use the same for replacement. For different dsn/vols must be different. Note that all commas are correctly included in the original "text" where needed. All that is needed is to replace/swap the things within the delimiters.

Code your parameter file simply:
<i want to replace dsn1> andthenthestuff
<i want to replace vols1> andthensomeotherstuff


Is Sort the dicated requirement for the solution?

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 5:04 pm
by vamsyk9
No Not neccessary.

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 5:24 pm
by BillyBoyo
Your skillset has rexx. You have much experience with that?

Re: Replacing PS name with new name

PostPosted: Tue Feb 14, 2012 5:39 pm
by vamsyk9
I am a learner in Rexx.

Re: Replacing PS name with new name

PostPosted: Wed Feb 15, 2012 1:47 pm
by vamsyk9
How to approach in REXX, Can some one help me pls

Re: Replacing PS name with new name

PostPosted: Wed Feb 15, 2012 1:56 pm
by NicC
If you can program in another language then learning Rexx should not take long. The pseudo code will be the same but the coding will be done under the rules of Rexx. See the Rexx Language Reference. You will also need the manual for the rexx exrensions in TSO - eg EXECIO. You can also run rexx on your PC so you can practise at home out-of-hours.

Re: Replacing PS name with new name

PostPosted: Thu Feb 16, 2012 12:11 am
by Frank Yaeger
vamsyk9,

Your approach is really "interesting" (read "silly"). You asked how to do this in DFSORT. I asked you to explain exactly what you want to do so I can help you with DFSORT. Instead of doing that, you're now looking to do it in REXX which you don't know well. If you can't define your requirement clearly, then I don't see how you will be able to do it in REXX rather than Sort. Seems to me your real problem is that you can't explain your requirement clearly and until you can do that, nothing else matters.