Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REXX member rename in batch (600 members)

Status
Not open for further replies.

maddop

Technical User
Jan 6, 2006
1
GB
I have 600 JCL members with a standard name:

MADDDMxx

I want to rename them over to

MADDMMxx

Is it possible to do this with REXX?
If so how?

Thanks,
Paul
 
Sure.

1. get a list of all the members in the dataset (LISTD dsn M) into an OUTTRAP

2. walk the list (probably with PULL) selecting only members like MADDDM*

3. for each such, generate the desired new membername and issue { address TSO "RENAME" dsn"("mbr") ("newmbr")" }

There are some potential problems with this method. For one, some of those members may be aliases or have aliases and those members will have to be handled manually, or you will have to write lots more code.


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top