Hi,
How can I rename the PDS member names while copying one PDS to other?
Rename members while copy PDS.
- Robert Sample
- Global Moderator
- Posts: 1898
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Rename members while copy PDS.
Since you did not specify how you are copying members from PDS to PDS, you made it very difficult to provide an accurate answer to you.
If you are using TSO ISPF to do the copy, either rename in the source PDS and then copy, or copy and then rename in the target PDS. There is probably a way to do the rename during the copy, but you can read the manual as well as I can.
If you are using IEBCOPY to do the copy, the SELECT MEMBER utility control statement allows you to rename members:will copy MEMBER1 and MEMBER2, renaming MEMBER2 to NEWMEMB. The parentheses around the rename pair (old name, new name) are NOT optional.
If you are using TSO ISPF to do the copy, either rename in the source PDS and then copy, or copy and then rename in the target PDS. There is probably a way to do the rename during the copy, but you can read the manual as well as I can.
If you are using IEBCOPY to do the copy, the SELECT MEMBER utility control statement allows you to rename members:
Code: Select all
SELECT M=(MEMBER1,(MEMBER2,NEWMEMB))
Re: Rename members while copy PDS.
Thanks Robert. I was doing it using ISPF. Thanks for IEBCOPY, I never used that, will work with that.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute