Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of the SET statement z/OS MVS JCL Reference SA23-1385-00 |
|
Example 1: The symbolic parameter DSP is defined
and initialized to the value NEW.
DSP is referenced by coding &DSP in the JCL, for example:
In the example, &DSP is assigned the value NEW for execution:
Example 2: The symbolic parameter DSP is defined
and initialized to the value (NEW,DELETE,KEEP).
DSP is referenced by coding &DSP in the JCL, for example:
&DSP is assigned the value (NEW,KEEP) from PROC statement PR2
for execution:
In the example, the definition of DSP on SET statement SETA does not override the default definition of DSP on PROC statement PR2. Example 3: This example shows the SET statement spanning
two records. The symbolic parameters are defined and initialized to
the values shown on SET statement SETB. They are referenced by coding
&AA, &BB, and &CC in the JCL, for example:
In the example, the values assigned on DD statement DD7 for execution
are:
The values defined for the symbolic parameters on SET statement SETB are assigned to the AA and CC symbolic parameters in procedure PR3 for execution. However, the value defined for symbolic parameter BB on EXEC statement S1 overrides the value defined on SET statement SETB. Example 4: The following example shows the use of
the SET statement assigning values to symbolic parameters in an INCLUDE
group.
The following program is executed.
The SET statement, which can be easily changed for different jobs, assigns values to the symbolic parameters in INCLUDE group SYSOUT2. After the INCLUDE statement is processed, the JCL stream would
be executed as:
The INCLUDE group has been imbedded in the JCL stream (replacing the INCLUDE statement) and values assigned to the symbolic parameters in the INCLUDE group. |
Copyright IBM Corporation 1990, 2014
|