Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To copy/replace selected members using IEBCOPY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 58
Location: Bangalore

PostPosted: Tue Jun 26, 2012 12:00 pm    Post subject: To copy/replace selected members using IEBCOPY
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: 788
Location: Chennai, India

PostPosted: Tue Jun 26, 2012 12:11 pm    Post subject:
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: 58
Location: Bangalore

PostPosted: Tue Jun 26, 2012 12:48 pm    Post subject:
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: 1787
Location: UK

PostPosted: Tue Jun 26, 2012 5:38 pm    Post subject:
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: 58
Location: Bangalore

PostPosted: Tue Jun 26, 2012 5:58 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us