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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDS MEMBERS EDIT AND RENAME

Status
Not open for further replies.

APRASAD

Programmer
Jan 7, 2005
2
US
I have a pds containing jcls. All the jcls names end with a P. I am required to rename all the jcls and change the P to a T. Also, the jobname has to be changed to match the member name.
Any help in how this can be done will be highly appreciated.

As you can see I am pretty new to using rexx / ispexec etc.

Thank you
 
All of them?? Your best bet is to start with a memberlist (see and for each member exercise this little StarTool (PDS) command:
Code:
PDS <dsn> RENAME <oldname> <newname>
.

I actually have this in my ISPF command table, but there's no reason it can't be exercised from a REXX routine.

P.s.: Tek-Tips apparently blocks access to my website for reasons unknown; you'll have to cut-and-paste the URL above.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
You could do it quite easily. In your main REXX you run LMMLIST with a PATTERN(*P) to get member names, then use LMMOVE to move it from *P to *T (if you know what I mean), then you EDIT the new member with a macro to change whatever fields you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top