On Wed, 4 Jan 2012 20:01:54 -0500, Graham Hobbs wrote:
>
>Found another JCL example and notes in another doc .. glaring errors in
>SYSUT2! SYSUT2 has to have exactly the same attributes as SYSUT1 i.e. RECFM,
>LRECL, BLKSIZE, allocated CYLS, EXTENTS and BLOCKS, don't use RLSE and it
>works.
>
>//STEP1    EXEC PGM=IEBCOPY
>//SYSPRINT DD SYSOUT=*
>//SYSUT1   DD DSN=CONRAD.CBL.PGMS,DISP=SHR
>//SYSUT2   DD DSN=CONRADZ.CBL.PGMS.BK120105,DISP=(NEW,CATLG),
>//         UNIT=SYSDA,VOL=SER=VPWRKA,SPACE=(CYL,(60,1,200)),
>//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=6160)
>//SYSIN    DD *
>    COPY INDD=SYSUT1,OUTDD=SYSUT2
> 
I hope SPACE, at least, needn't be "exactly the same", merely
at least as great, or even just great enough to hold the members
being copied.

And I believe that if you leave RECFM, LRECL, and BLKSIZE blank
IEBCOPY will fill them in from INDD.  (Or am I thinking only of IEBGENER?)
And if SMS is being nice to you, you needn't specify VOL=SER.

-- gil

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

Reply via email to