Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of the DDNAME parameter z/OS MVS JCL Reference SA23-1385-00 |
|
Example 1: The following procedure step is the only
step in a cataloged procedure named CROWE:
DD statement DD1 is intended for weekly records in the input stream;
these records are processed by this step. Because the * and DATA
parameters cannot be used in cataloged procedures, the DDNAME parameter
is coded to postpone defining the data set until the procedure is
called by a job step. The step that calls the procedure is:
Example 2: When the procedure contains multiple steps,
use the form stepname.ddname for the ddname of the referenced DD statement.
For example, the following procedure steps appear in a cataloged procedure
named PRICE:
The step that calls the procedure is:
Example 3: When the referenced DD statement is to
be a concatenation, the procedure must already contain the concatenation.
(Such as when the referencing DD statement is to contain in-stream
data.) For example, the following procedure step appears in cataloged
procedure NEWONE.
The step that calls the procedure is:
The instream data (DDNAME=INSTUFF) is inserted before OLDSTUFF in the concatenation. Example 4: In the following example we create
a DD concatenation in a procedure using multiple DDNAME forward references,
INPUT1—INPUT5. In the example, INPUT1 resolves to data set FIRST,
INPUT2 resolves to data set SECOND, and INPUT3 resolves to data set
THIRD. INPUT4 and INPUT5 resolve to DUMMY.
|
Copyright IBM Corporation 1990, 2014
|