IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To copy/replace selected members using IEBCOPY


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Jun 26, 2012 12:00 pm
Reply with quote

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

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue Jun 26, 2012 12:11 pm
Reply with quote

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

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Jun 26, 2012 12:48 pm
Reply with quote

Thanks Nallathambi..I was expecting something of this sort. Am able to replace the members icon_smile.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Jun 26, 2012 5:38 pm
Reply with quote

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

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Jun 26, 2012 5:58 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
Search our Forums:

Back to Top