Rename libraries - automation possible



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Rename libraries - automation possible

Postby manesg » Thu Jul 17, 2008 11:29 am

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
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: Rename libraries - automation possible

 

Re: Rename libraries - automation possible

Postby MrSpock » Thu Jul 17, 2008 4:53 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Rename libraries - automation possible

Postby manesg » Fri Jul 18, 2008 3:45 pm

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.
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post