>From the JCL reference manual under the DDNAME parameter:
Location of DD Statements for Concatenated Data Sets
To concatenate data sets to a data set defined with a DDNAME parameter,
the unnamed DD statements must follow the DD statement that contains the
DDNAME parameter, not the referenced DD statement that defines the data
set.
In this sequence, the unnamed DD * follows the CMWKF02 DD statement and so
is not picked up as part of the concatenation:
80 XXCMSYNIN DD DDNAME=SYSIN
81 //CMWKF02 DD DSN=SYS3.APRCB.PROD.UNDUP(+1),
// DISP=(NEW,PASS,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(20,2),RLSE),
// DCB=SYS3.PATTERN.RECL0020
82 //SYSIN DD DSN=SYS3.ANATP.LOGON,DISP=SHR
83 // DD *
INPUT
/*
In this sequence, the unnamed DD * follows the CMSYNIN DD statement and so
is picked up as part of the concatenation:
80 XXCMSYNIN DD DDNAME=SYSIN
81 //SYSIN DD DSN=SYS3.ANATP.LOGON,DISP=SHR
82 // DD *
INPUT
/*
83 //CMWKF02 DD DSN=SYS3.APRCB.PROD.UNDUP(+1),
// DISP=(NEW,PASS,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(20,2),RLSE),
// DCB=HWG.PATTERN.RECL0020
Regards,
Ralph
Ralph Kaden
z/OS (MVS) Level 2 Support - Allocation and Scheduler
(Converter/Interpreter, Initiator/Terminator, ENF, SJF, SMF, SSI, SWA Mgr)
T/ L: 8/295-4096 External: 845-435-4096
VM: S390VM.v$i01029 MVS: PLPSC.v$i316
External email: [EMAIL PROTECTED]
Internal email: Ralph Kaden/Poughkeepsie/Contr/[EMAIL PROTECTED]
Anton Britz <[EMAIL PROTECTED]>
Sent by: IBM Mainframe Discussion List <[email protected]>
08/12/2008 03:41 PM
Please respond to
IBM Mainframe Discussion List <[email protected]>
To
[email protected]
cc
Subject
zOs 1.7 JCL concatenation question ?
Hi,
Why do we not see the concatenated SYSIN when we code the JCL the
following way :
80 XXCMSYNIN DD DDNAME=SYSIN
81 //CMWKF02 DD DSN=SYS3.APRCB.PROD.UNDUP(+1),
// DISP=(NEW,PASS,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(20,2),RLSE),
// DCB=SYS3.PATTERN.RECL0020
82 //SYSIN DD DSN=SYS3.ANATP.LOGON,DISP=SHR
83 // DD *
INPUT
/*
But if we code it this way, the second SYSIN concatenation is seen by the
program :
80 XXCMSYNIN DD DDNAME=SYSIN
81 //SYSIN DD DSN=SYS3.ANATP.LOGON,DISP=SHR
82 // DD *
INPUT
/*
83 //CMWKF02 DD DSN=SYS3.APRCB.PROD.UNDUP(+1),
// DISP=(NEW,PASS,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(20,2),RLSE),
// DCB=HWG.PATTERN.RECL0020
----------------------------------------------------------------------
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
----------------------------------------------------------------------
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