View previous topic :: View next topic
|
Author |
Message |
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2023 Location: USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
since today id friday
the TS thought that psychic powers were enabled |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Why has no one asked why you are not using a change control system for a production library update? |
|
Back to top |
|
|
|