Page 1 of 1

How to rename a member of a PDS using REXX?

Posted: Mon Mar 31, 2014 8:18 pm
by Pragya
Hi,

Is there a way using which I can rename some or all of the members of a PDS using REXX? I could not find a way of doing this.

Thanks for any guidance on this.

Re: How to rename a member of a PDS using REXX?

Posted: Mon Mar 31, 2014 8:27 pm
by zprogrammer
When you mean rename how do you want to rename the members to?

Re: How to rename a member of a PDS using REXX?

Posted: Mon Mar 31, 2014 8:47 pm
by Pragya
member1 should be renamed to member2... I'm not sure if I got you?

Re: How to rename a member of a PDS using REXX?

Posted: Mon Mar 31, 2014 8:53 pm
by zprogrammer
Hi Pragya,

I mean to ask like how do you know the new member names?

Is there a place which stores the member names ?

here in your example when you mean member1 to member2 does that mean all 1 should be converted to 2?

Re: How to rename a member of a PDS using REXX?

Posted: Tue Sep 15, 2015 2:20 pm
by Pragya
I did it manually back than but will be intrested to know if there is way to do it.

My old memeber name is say, PGMMEM1 and the new membe rname would be PRGMMEM1. In short, for all members we can replace PGM* with PRGM*.

Re: How to rename a member of a PDS using REXX?

Posted: Tue Sep 15, 2015 4:08 pm
by nicc
So in the last 6 months which manuals have you researched in order to try and find a solution?

Re: How to rename a member of a PDS using REXX?

Posted: Wed Sep 30, 2015 4:27 pm
by Pragya
I could not find a direct funtion or a way in REXX but TSO command RENAME was close. However I did not use it as it was one time requirement and I did it with Filie-Aid and manually for the smaller PDSes.

Re: How to rename a member of a PDS using REXX?

Posted: Wed Sep 30, 2015 4:56 pm
by enrico-sorichetti
the smarter way would be to use ISPF library management services ( LMMREN )