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

How to copy\replace the members in production PDS


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

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Fri Mar 22, 2019 7:02 pm
Reply with quote

Hi,

I have 1000 members in PDS1. I have 2000 members in PDS2(production pds). I have to copy the 1000 from pds1 to pds2. Those 1000 members can be of old or new. So it has to replace in PDS2 if its old and copy it to PDS2 if its new. I tried using IEBCOPY, but could not get the result what I am looking for.

Please assist.

Thanks
Abdul Rafi
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 22, 2019 7:24 pm
Reply with quote

Quote:
I tried using IEBCOPY, but could not get the result what I am looking for.
This makes no sense -- if you use the REPLACE option with IEBCOPY, it will replace existing members and add new members. So what results did you get that you were not looking for?
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10713
Location: italy

PostPosted: Fri Mar 22, 2019 7:25 pm
Reply with quote

what about looking Yourself at the manual for the syntax of the copy replace control statement for iebcopy

hint the first link(*) returned by googling
ibm iebcopy copy replace
would have given you the answer

www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.idau100/u1047.htm
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 869
Location: The Universe

PostPosted: Fri Mar 22, 2019 7:47 pm
Reply with quote

Unless there is more complexity than in your description, IEBCOPY can easily do what you want.
Code:
//        EXEC PGM=IEBCOPY
//SYSPRINT DD  SYSOUT=*
//I        DD  -- Data set containing only new programs --
//O        DD  -- Data set containing production programs --
//SYSIN    DD  *
 COPY INDD=((I,R)),OUTD=O

You could have easily determined this by actually reading the IEBCOPY documentation in DFSMSdfp Utilities for your z/OS release.

I strongly recommend making a backup of the production data set before you run this copy job.
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 924
Location: Maryland

PostPosted: Fri Mar 22, 2019 9:49 pm
Reply with quote

abdulrafi wrote:
I tried using IEBCOPY, but could not get the result what I am looking for.

Without at least minor clarification, or an example, no one in this forum would be able to provide any help.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10713
Location: italy

PostPosted: Fri Mar 22, 2019 10:45 pm
Reply with quote

since today id friday
the TS thought that psychic powers were enabled icon_cool.gif
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1015
Location: Richmond, Virginia

PostPosted: Sat Mar 23, 2019 9:12 am
Reply with quote

Why has no one asked why you are not using a change control system for a production library update?
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
This topic is locked: you cannot edit posts or make replies. Copy list of files from PS to another... CLIST & REXX 11
No new posts Need to split single line into two li... DFSORT/ICETOOL 7
No new posts Hex Value - vb file replace old date ... DFSORT/ICETOOL 14
No new posts Members search in PDS JCL & VSAM 9
No new posts VSAM Open During Copy-Excessive EXCP ... JCL & VSAM 1
Search our Forums:

Back to Top