Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 182
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: 8551
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: 10690
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: 822
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 Member


Joined: 29 Apr 2008
Posts: 802
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: 10690
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

Senior Member


Joined: 31 Oct 2006
Posts: 1004
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 VSAM Open During Copy-Excessive EXCP ... David Beckham JCL & VSAM 1 Sat Jun 27, 2020 5:23 pm
No new posts Fetch the Dataset names from inside m... kalyan94 TSO/ISPF 18 Wed Jun 17, 2020 2:06 pm
No new posts Problème reproducing a production bu... ELLAHEYA ABENDS & Debugging 1 Mon Jun 15, 2020 7:05 pm
No new posts Batch JCL to Copy from Unix Directory... satish.ms10 JCL & VSAM 5 Tue May 19, 2020 7:53 pm
No new posts File Manager Copy narinder4075 IBM Tools 1 Thu Apr 30, 2020 9:15 pm

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