Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to copy\replace the members in production PDS

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

Active User


Joined: 14 Sep 2009
Posts: 171
Location: Coimbatore

PostPosted: Fri Mar 22, 2019 7:02 pm    Post subject: How to copy\replace the members in production PDS
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: 8455
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 22, 2019 7:24 pm    Post subject: Reply to: How to copy\replace the members in production PDS
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 Member


Joined: 14 Mar 2007
Posts: 10609
Location: italy

PostPosted: Fri Mar 22, 2019 7:25 pm    Post subject: Reply to: How to copy\replace the members in production PDS
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

https://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: 738
Location: The Universe

PostPosted: Fri Mar 22, 2019 7:47 pm    Post subject:
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 User


Joined: 29 Apr 2008
Posts: 471
Location: Maryland

PostPosted: Fri Mar 22, 2019 9:49 pm    Post subject: Re: How to copy\replace the members in production PDS
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 Member


Joined: 14 Mar 2007
Posts: 10609
Location: italy

PostPosted: Fri Mar 22, 2019 10:45 pm    Post subject: Reply to: How to copy\replace the members in production PDS
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

Active Member


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

PostPosted: Sat Mar 23, 2019 9:12 am    Post subject:
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    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 Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts refresh data from production - update... jzhardy DB2 1 Mon May 06, 2019 5:06 pm
This topic is locked: you cannot edit posts or make replies. Copy one file to possible multiple files dibyendumandal11111 SYNCSORT 9 Fri Mar 08, 2019 2:47 am
No new posts how to copy a sequential dataset by u... javen777 JCL & VSAM 3 Thu Feb 21, 2019 11:37 pm
No new posts Copy members from Input PDS to Output... Poha Eater JCL & VSAM 9 Tue Jan 29, 2019 3:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us