Remember, that IEBCOPY has lots of examples and details on IBM.COM

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.idau100/iebcopy.htm


Unless specified, the examples will tell you exactly how to copy from a LibA to 
a LibB

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
> esmie moo
> Sent: Tuesday, May 07, 2019 10:37 AM
> To: [email protected]
> Subject: Re: COPYING PDS AND PDSE
> 
>  Thanks Seymour and thanks to all who responded to my post.
>     On Tuesday, May 7, 2019, 11:39:43 a.m. EDT, Seymour J Metz
> <[email protected]> wrote:
> 
>  COPYMOD is for load module reblocking. There are no load modules in a PDSE.
> Off the top of my head I don't even recall whether it is valid for program
> objects. The COPY statement should work fine for PDSE.
> 
> 
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
> 
> ________________________________________
> From: IBM Mainframe Discussion List <[email protected]> on behalf of
> esmie moo <[email protected]>
> Sent: Tuesday, May 7, 2019 9:15 AM
> To: [email protected]
> Subject: Re: COPYING PDS AND PDSE
> 
>  I want to copy the PDSE to another.  I was told that COPYMOD was the
> preferable parm when copying LOADLIBS.  Is it okay just to use COPY?
>     On Tuesday, May 7, 2019, 8:09:09 a.m. EDT, Elardus Engelbrecht
> <[email protected]> wrote:
> 
>  esmie moo wrote:
> 
> >Are there special parms that I need to use in the copy PDS & PDSE'S?
> 
> It depends. Do you want to copy all or specific members?
> 
> 
> >For example if I want to copy a PDSE to another PDSE (some maybe LOADLIBS)
> would the following be okay?
> 
> PS: I have doctored your JCL sample for better readability! ;-)
> 
> //COPYJCL1  EXEC PGM=IEBCOPY
> //SYSPRINT DD SYSOUT=*
> //SYSUT3  DD UNIT=SYSDA,SPACE=(CYL,(50,50))
> //SYSUT4  DD UNIT=SYSDA,SPACE=(CYL,(50,50)) //INDD    DD
> DISP=OLD,DSN=MYDSN.CLIP.SHR //OUTDD    DD DISP=OLD,DSN=MYDSN.CLIP.SHR.NEW
> //SYSIN    DD *
>   COPY INDD=INDD,OUTDD=OUTDD
> /*
> //
> 
> 
> >Is the COPY command sufficient?
> 
> It should be, a$$uming you want to copy ALL members without any reblocking
> with COPYMOD and that both datasets RECFM, LRECL, BLKSIZE, etc. are the same.
> 
> Perhaps you can drop SYSUT3 and SYSUT4 and add this one:
> 
> //SYSOUT  DD SYSOUT=*
> 
> Are you getting any error message(s)?
> 
> Groete / Greetings
> Elardus Engelbrecht
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to