Page 1 of 1

Renaming dataset names in a Proc

PostPosted: Thu Nov 06, 2008 11:46 am
by jishnurb
Hi,
I have some 300 procs to change.These proc contain some datasetnames.
Like
if I have to change XYZ.ABC.PQR(THE DATASET NAME)
to XYZ1.ABC1.PQR1
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.

Re: Renaming dataset names in a Proc

PostPosted: Fri Nov 07, 2008 7:09 am
by dick scherrer
Hello,

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:
clist-rexx/read-member-from-pds-t637.html

Re: Renaming dataset names in a Proc

PostPosted: Thu Nov 13, 2008 4:36 am
by chidams78
Hello,

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

"ISREDIT C 'XYZ.ABC.PQR(THE DATASET NAME)' 'XYZ1.ABC1.PQR1' ALL"
"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.

Thanks
Chidam