How to rename a member of a PDS using REXX?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

How to rename a member of a PDS using REXX?

Post 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.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

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

Post by zprogrammer »

When you mean rename how do you want to rename the members to?
zprogrammer
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

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

Post by Pragya »

member1 should be renamed to member2... I'm not sure if I got you?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

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

Post 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?
zprogrammer
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

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

Post 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*.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

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

Post by nicc »

So in the last 6 months which manuals have you researched in order to try and find a solution?
Regards
Nic
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

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

Post 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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

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

Post by enrico-sorichetti »

the smarter way would be to use ISPF library management services ( LMMREN )
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 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”