Ah, I think I understand. REFDD does not look at the cataloged dataset being referred to, but rather at the DD statement itself. LIKE, on the other hand, looks at a cataloged dataset. OK. Makes sense. Not what I wanted, but makes sense. Thanks!
On 5/24/2010 at 5:20 PM, in message <45b7288bec7648468f3309472e0f960d923820c...@emdpb-es1.prod.main.ntgov>, Anthony Thompson <[email protected]> wrote: > There's no SPACE parms specified on SYSUT1. And I'm guessing that the > dataclass for the file referenced in SYSUT1 doesn't have any space > information in it either (or it doesn't have a dataclass). > > LIKE just uses the attributes of the referenced (model) dataset, it doesn't > look in the associated dataclass. > > Cheers, Ant. > Northern Territory Govt., Australia > > > ----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf > Of Frank Swarbrick > Sent: Tuesday, 25 May 2010 8:28 AM > To: [email protected] > Subject: REFDD > > Am I misreading the manual? > > It says > "Use the REFDD parameter to specify attributes for a new data set by copying > attributes of a data set defined on an earlier DD statement in the same job. > > The following attributes are copied to the new data set from (1) the > attributes specified on the referenced DD statement, and (2) for attributes > not specified on the referenced DD statement, from the data class of the data > set specified by the referenced DD statement: > > > Data set organization > Record organization (RECORG) or > Record format (RECFM) > Record length (LRECL) > Key length (KEYLEN) > Key offset (KEYOFF) > Type, PDS or PDSE (DSNTYPE) > Space allocation (AVGREC and SPACE)" > > But when I try the following (using REFDD on SYSUT2): > > //TRANBKP EXEC PGM=IEBGENER,COND=(4,LT) > //SYSPRINT DD SYSOUT=* > //SYSIN DD DUMMY > //SYSUT1 DD DSN=&XMTENV..RXMTIN.FDR.CCTRAN, > // DISP=SHR > //SYSUT2 DD DSN=&DSNENV..FDR.CCTRAN.BKP(+1), > // REFDD=*.SYSUT1, > // DISP=(NEW,CATLG,DELETE) > > It says > IEF344I CCUPDT TRANBKP PROC01 SYSUT2 - ALLOCATION FAILED DUE TO DATA FACILITY > SYSTEM ERROR > IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET > > PROD.FDR.CCTRAN.BKP.G0002V00 > > IEF272I CCUPDT TRANBKP PROC01 - STEP WAS NOT EXECUTED. > > > But this works (using LIKE on SYSUT2): > > //TRANBKP EXEC PGM=IEBGENER,COND=(4,LT) > //SYSPRINT DD SYSOUT=* > //SYSIN DD DUMMY > //SYSUT1 DD DSN=&XMTENV..RXMTIN.FDR.CCTRAN, > // DISP=SHR > //SYSUT2 DD DSN=&DSNENV..FDR.CCTRAN.BKP(+1), > // LIKE=&XMTENV..RXMTIN.FDR.CCTRAN, > // DISP=(NEW,CATLG,DELETE) > > What am I missing? > > Frank >>> The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

