Rename members while copy PDS.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
harish123
Registered Member
Posts: 50
Joined: Thu Jul 04, 2013 10:26 am
India

Rename members while copy PDS.

Post by harish123 »

Hi,

How can I rename the PDS member names while copying one PDS to other?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Rename members while copy PDS.

Post by Robert Sample »

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:

Code: Select all

SELECT M=(MEMBER1,(MEMBER2,NEWMEMB))
will copy MEMBER1 and MEMBER2, renaming MEMBER2 to NEWMEMB. The parentheses around the rename pair (old name, new name) are NOT optional.
harish123
Registered Member
Posts: 50
Joined: Thu Jul 04, 2013 10:26 am
India

Re: Rename members while copy PDS.

Post by harish123 »

Thanks Robert. I was doing it using ISPF. Thanks for IEBCOPY, I never used that, will work with that.
Post Reply

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

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”