Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to rename the member names of a PDS through JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
shabir46

New User


Joined: 24 Jan 2008
Posts: 14
Location: Kerala

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

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
View user's profile Send private message
References
Moved: Fri Sep 05, 2008 5:57 pm by superk From DB2 to SMS & VSAM
expat

Global Moderator


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

PostPosted: Fri Sep 05, 2008 5:59 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


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

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

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
View user's profile Send private message
shabir46

New User


Joined: 24 Jan 2008
Posts: 14
Location: Kerala

PostPosted: Fri Sep 05, 2008 6:23 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj D.

Global Moderator


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

PostPosted: Fri Sep 05, 2008 7:03 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Sep 05, 2008 7:08 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1