Renaming dataset names in a Proc

IBM's Command List programming language & Restructured Extended Executor

Renaming dataset names in a Proc

Postby jishnurb » Thu Nov 06, 2008 11:46 am

I have some 300 procs to change.These proc contain some datasetnames.
if I have to change XYZ.ABC.PQR(THE DATASET NAME)
Also i have some words to be changed using the proc
For example above the JCL name: proc name will be written in comments right
I have to change them
That is
say //*Jproc begins here
has to be changed to //*Mproc begins here
Could you Just come up with a REXX utility which will do this.It will be a great help for me.
Posts: 4
Joined: Fri Aug 08, 2008 4:09 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Renaming dataset names in a Proc

Postby dick scherrer » Fri Nov 07, 2008 7:09 am


The purpose of the forum is to help solve problems or help people learn. It is not to do their work for them. . .

If you post what you have and your question about it, someone should be able to make suggestions.

You might look here for a starting point:
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Renaming dataset names in a Proc

Postby chidams78 » Thu Nov 13, 2008 4:36 am


For this functionaility, first you need to have the ISPF EDIT macro.

"ISREDIT C '//*Jproc begins here' '//*Mproc begins here' ALL"

Then need to call this macro in the REXX program by making use of LMM list functions. We need to put the macro in loop which queues all the members in the PDS

How to execute
You need to open up any one PROC in the PDS and type in the REXX name in the command line.
Then all the procs in the PDS will get affected with the function mentioned in the ISPF edit macros.

Posts: 16
Joined: Fri Sep 19, 2008 6:35 pm
Has thanked: 0 time
Been thanked: 0 time

Return to CLIST & REXX


  • Related topics
    Last post