View previous topic :: View next topic
|
Author |
Message |
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
Hi,
Am trying to copy selected members from one PDS to another using IEBCOPY. If the member already exists in Target PDS, then it has to be replaced.
When used the below sort card
Code: |
COPY INDD=PDSIN,OUTDD=PDSOUT
SELECT MEMBER=(MEMB1,MEMB2,MEMB3,MEMB4) |
The members which were already present in Target PDS were not replaced.
Use the below sort card to replace a single member
Code: |
COPY INDD=PDSIN,OUTDD=PDSOUT
SELECT MEMBER=((MEMB1,,R)) |
Could you please help me to write a Sort card to have Replace option to copy/replace multiple members with single SELECT statement (similar to the first sort card posted) instead of having multiple SELECT statement (with Replace option) for each member
Thanks
Sikkandhar |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Is that what you mean?
Code: |
Copy a list of members and replace them if they are already in the output data set.
{label} SELECT MEMBER=((name1,,R),(name2,,R),...) |
|
|
Back to top |
|
|
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
Thanks Nallathambi..I was expecting something of this sort. Am able to replace the members |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Quote: |
I was expecting something of this sort. |
So why did you not look it up in the manual or even just try it instead of having someone else do it for you? |
|
Back to top |
|
|
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
Hi Nic,
I was trying out different Stuffs (have posted the ones i have tried). Since i was running on a tight deadline, I thought i'll get some help. Yeah i missed to refer the manual as i was rather searching the forums, checking whether someone had posted a similar topic |
|
Back to top |
|
|
|