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

-- 

Frank Swarbrick
Applications Architect - Mainframe Applications Development
FirstBank Data Corporation - Lakewood, CO  USA
P: 303-235-1403


>>> 

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

Reply via email to