hi,
i have 1 more doubt
if i have 10 members in a pds, and i want to rename all the 10 .
is there anything which i helps to make it possible that with 1 single command, such that i can give that command and the name of members which is to be changed and the new member name?
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
Hi Remya,
For doing the same , list down all the member names in a flat file using IEHLIST , and their corresponding renamed names in a diff flat file .
repeat the above IEBCOPY jcl using REXX and you have a job for the same .
Now , all your pds members will be available at your flat file .
you must be having a list of new member names , put them in a diff flat file i.e. your.flat.file1 .
Saith,
Don't you think for this prog to work ;the variable PROG1 also needs to be populated before issuing a call to the Routine GENERATE_JCL_MEMBERS as given below ?
DO I = 1 TO PROG.0
PROG = SUBSTR(PROG.I,12,8)
PROG1 = SUBSTR(PROG1.I,12,8)
CALL GENERATE_JCL_MEMBERS
END
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
Hi Hanfur,
Please have refer my quote .
Quote:
Now , all your pds members will be available at your flat file .
you must be having a list of new member names , put them in a diff flat file i.e. your.flat.file1 .
Actually you should have a list of members to be renamed in a different flat file . Which , you can populate using the iehlist job (if they are available in a particular pds )and adding one more rexx statement as you did , or else by populating your.flat.file1 from wherever the list is available with the user. It depends on where is the list of new member names .
Thus , i have not elaborated much about the same .