Page 1 of 1

Rename libraries - automation possible

PostPosted: Thu Jul 17, 2008 11:29 am
by manesg
Hi folks,

I have the following process to do:
Rename the following libraries with the new <dropid> (eg: FABB.E90APY.COMPILE.LIST.C220)
FABB.E90APY.COMPILE.LIST
FABB.E90APY.DBYY.DDL
FABB.E90APY.DDLLIB
and other libraries (apprx 15 libraries).

Iam currently using 3.4 from the ISPF option and typing "R" at the command to manually rename the 15 libraries (from
FABB.E90APY.COMPILE.LIST to FABB.E90APY.COMPILE.LIST.C220) and so on for other libraries.

Is there anyway i can use a JCL to automate this process? Any leads please.
Iam new to mainframe (having very little knowledge on JCL's) and iam taking steps to automate some of the manual process.

thanks for your time.
ManeSG

Re: Rename libraries - automation possible

PostPosted: Thu Jul 17, 2008 4:53 pm
by MrSpock
RENAME is a TSO command that performs the same function. You could make a foreground process or batch job containing a series of TSO RENAME commands.

A similar function is the Access Method Services (IDCAMS) command ALTER.

Alternatively, you could write a program that would use the same ISPF Services that you're currently using manually. The LMRENAME service is what the ISPF 'R' option is using. Then, you could call that program in either the foreground or in batch.

Re: Rename libraries - automation possible

PostPosted: Fri Jul 18, 2008 3:45 pm
by manesg
Thanks Mr Spock.
First i shall start writing this batch prgm JCL using the RENAME (ISPF) commands as you specified and shall test it.
Iam new and not have written JCL's earlier. But shall start with this.
Thanks once again for giving me a lead.