The paragraph you quoted says nothing about whether you can use COPYMOD to copy 
a program object from one PDSE o another.

> "COPYGRP is recommended for PDS Load Modules or PDSE Program Objects to
> include any aliases that may be present."

The same document says "When the INDD and OUTDD data sets are both PDSs, 
COPYGROUP can only be used if the INDD and OUTDD data sets have the same 
blocksize." and "If the COPY statement is used to copy program objects, errors 
can occur."



--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
Mike Schwab <mike.a.sch...@gmail.com>
Sent: Thursday, May 9, 2019 10:52 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: COPYING PDS AND PDSE

https://secure-web.cisco.com/1ZrP8ehI3x6X_xS-Qew1MS6pX58KMruy8h3RhoF7n3Zdh1y3pJAJbnwOvmn_gWgFfDWXVJs1kWyT2WTH8hu_pc6bY4HHzDuyUarpF593hMj-_gbasSGR4uKvC-ZBz9xKJf9o4BnoYUhuACBNcmmGxnR2eeW9Guof4WggYFzivljzy5T1RkrcikEd7miltvn-opQ_DSp87d9GXZStPkAneUJCeONi4mFdgSjio9ZRxtjzjRkqSKFxLiJxcxU-voglKRTvsMm5OgSuuIymBtef3Ge3VwC6vXi2raknMQK_DGBYdU5uqhfhETL4uGwqVKLgj0hq5K2Nmz54iFPtd1DrXyn2yFTnNgZmnQ1gID9lEDSqKJIkEK7B1EnxBsXjRZpQ2/https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSSLTBW_2.3.0%2Fcom.ibm.zos.v2r3.idau100%2Fu1061.htm

Program objects are created automatically when load modules are copied
into a PDSE. Likewise, program objects are automatically converted
back to load modules when they are copied into a partitioned data set.
Note that some program objects cannot be converted into load modules
because they use features of program objects that do not exist in load
modules.

https://secure-web.cisco.com/1oMGxjg93RyfhpBvjj6rBe3tCWkHP_ieeBcM71C_sfjxMIIdbZP6gO8tNLH7JUd1GZWLlfqYuuSPHp5BrXk0jHl2ob_4p2GzjZLKasT74A1PWp-GYnJ9DRmoSELDW4vRQrCfb_8ZdetgrSt2lJIM_N-qEcBMxyodxGXS2fqWgrmy9be9Ge5kU94pjJwPCui6RkHvnrz29KZlnoP1yz1e7vP4-_xwjWGKbVKyEJLn90ez0LqhQ5DVf0zTgTAsn_YRS9F79EFZfW5FxFs3OsmcICCV-kuz9Fa_aYE9NTHx5QS8M4kDWhlfGfM2HoFYnLizh1yxiLfhR3hWU8sTIiqMjaZUv7kf2JX1ywwuNv8_yHlAuX_FOFj0czRhtNIGLxoCR/https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSSLTBW_2.3.0%2Fcom.ibm.zos.v2r3.idau100%2Fu1070.htm

COPYGRP is recommended for PDS Load Modules or PDSE Program Objects to
include any aliases that may be present.

On Thu, May 9, 2019 at 9:40 AM Seymour J Metz <sme...@gmu.edu> wrote:
>
> The examples don't address the question. However, elsewhere there is a 
> warning not to use COPY for program objects.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> ________________________________________
> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
> esmie moo <0000012780d99c7b-dmarc-requ...@listserv.ua.edu>
> Sent: Thursday, May 9, 2019 9:34 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: COPYING PDS AND PDSE
>
>  Thanks Lizette.  I will check it out.
>     On Tuesday, May 7, 2019, 2:08:24 p.m. EDT, Lizette Koehler 
> <stars...@mindspring.com> wrote:
>
>  Remember, that IEBCOPY has lots of examples and details on IBM.COM
>
> https://secure-web.cisco.com/1ELn9Oo9wuySjWKB8I6WlTvWD7Cc_xaNIesP50m-vrocfufi3dAM03Dy3YxgUZux4MVKCHj2hPleNF4k1_Od0jpZnOXShKXARvst9DUda7bv1b2wtkmMbAGTtFsbUnZjAD26zX3qULI3FQbNwE7Sy8HjGkbdoAWeWsNbOwWMhrUCMKPTinqYbekG62RidWRQhDsbWkpl2pjo_O-se3EBKxPYMSVlF9TGiNTHPyLuPD7-0CNqUIId-gOxkigWok0_aB-IZnZ1vtRffN1EaF40lCuKemyASdOCKqiaWzdGPOIAZ9VStmy5aQrH3UXM680jiQeZyYbnD49i604UqWq1I4JpHGjePtEW8A2a18ZbW9YV995ZwjR8rSw0ADnNZacJ5RZwDhoh7wP8D4pA4u1kAP9JFWih7SKzw8Cv3kmS5zhdRkV8su2ynU2rGQvPwoajc/https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSSLTBW_2.3.0%2Fcom.ibm.zos.v2r3.idau100%2Fiebcopy.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 <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
> > esmie moo
> > Sent: Tuesday, May 07, 2019 10:37 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > 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
> > <sme...@gmu.edu> 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 <IBM-MAIN@LISTSERV.UA.EDU> on behalf of
> > esmie moo <0000012780d99c7b-dmarc-requ...@listserv.ua.edu>
> > Sent: Tuesday, May 7, 2019 9:15 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > 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
> > <elardus.engelbre...@sita.co.za> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to