|
|
| Author |
Message |
shabir46
New User
Joined: 24 Jan 2008 Posts: 14 Location: Kerala
|
|
|
|
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 |
|
 |
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 ...
|
|
|
|
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
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3265 Location: Charlotte,NC USA
|
|
|
|
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
New User
Joined: 24 Jan 2008 Posts: 14 Location: Kerala
|
|
|
|
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.
Global Moderator
Joined: 22 Apr 2006 Posts: 2159 Location: Phoenix, AZ
|
|
|
|
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
Global Moderator
Joined: 14 Mar 2007 Posts: 3509 Location: Brussels once more ...
|
|
|
|
| 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 |
|
 |
|
|