IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to rename the member names of a PDS through JCL?

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> SMS & VSAM
View previous topic :: View next topic  
Author Message
shabir46



Joined: 24 Jan 2008
Posts: 14
Location: Kerala

Posted: Fri Sep 05, 2008 5:57 pm    Post subject: How to rename the member names of a PDS through JCL?  

Hi ,

I have a PDS which having a around 110 members. All of the PDS member names are starting with fdhf..... I have copied all this PDS memebrs to my personal PDS. Now i need to change the name of all the members. Is there some way to do that through JCL using some simple commands ?


Shabir Kaithayil
Back to top  
expat



Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

Posted: Fri Sep 05, 2008 5:59 pm    Post subject:  

Unfortunately not,

but you can use IDCAMS cards to do it all in one batch job

Take a look at the ALTER command
Back to top  
superk



Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

Posted: Fri Sep 05, 2008 6:03 pm    Post subject: Reply to: How to rename the member names of a PDS through JC  

If you had used the IEBCOPY utility to copy the members, you could have specificed new member names during the copy process.

You can use the IDCAMS ALTER utility.

You can use the TSO/E RENAME command.
Back to top  
shabir46



Joined: 24 Jan 2008
Posts: 14
Location: Kerala

Posted: Fri Sep 05, 2008 6:23 pm    Post subject:  

Hi ,

Thanks for the quick response....

I did tried Rename option and is working fine, but that is allowing me to alter only for one member at a time.

But i was trying to find out a way to rename all the members in a single go....


Shabir
Back to top  
Anuj D.



Joined: 22 Apr 2006
Posts: 2229
Location: Phoenix, AZ

Posted: Fri Sep 05, 2008 7:03 pm    Post subject:  

Hi,
shabir46 wrote: But i was trying to find out a way to rename all the members in a single go.... In such a process how would you decide which member should be changed to what name ? Probably no other option then to change them one by one..
Back to top  
expat



Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

Posted: Fri Sep 05, 2008 7:08 pm    Post subject:  

You can list the PDS members into a dataset, and by using ISPF commands can generate the IDCAMS or TSO rename statements and execute them that way.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> SMS & VSAM
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM