Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of defining and coding symbols in JCL z/OS MVS JCL Reference SA23-1385-00 |
|
Example 1:
In this example of an in-stream procedure, the &LOC symbol has a default value of POK on the PROC statement; then it is assigned an execution value of NYC on the calling EXEC statement. Example 2:
This code nullifies the &NUMBER JCL symbol. The calling EXEC statement assignment of STL for the &LOC symbol overrides the PROC statement assignment of POK. Example 3: This example illustrates execution of
an in-stream procedure to test symbols before placing the procedure
in a procedure library. The in-stream procedure named TESTPROC is:
To execute this in-stream procedure and override &A with IEFBR14,
&B with BAKER, and &E with (NEW, KEEP) but leave the other
parameters the same, call the in-stream procedure with:
Note that the value (NEW,KEEP) does not require apostrophes because it contains a matched pair of parentheses. See Table 3 for more information. After symbolic substitution, the statements are:
Example 4: To execute the in-stream procedure in
the previous example and change DD1 to resemble a temporary scratch
space, code the following statement:
After symbolic substitution, the statements are:
|
Copyright IBM Corporation 1990, 2014
|