Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of procedures z/OS MVS JCL Reference SA23-1385-00 |
|
Example 1
In this example, the EXEC statement STEPA calls the cataloged procedure named REP and supplies in-stream data. The procedure executes a program named WRIT22. The output from the program will appear in the sysout class A data set. Example 2
In this example, added statements are:
Overriding statements are:
Example 3
In this example, EXEC statement STEPB calls the cataloged procedure WRIT35. The COND parameter is added to the EXEC statement for PSTEP3. The RD parameter is added to the EXEC statements for PSTEP1 and PSTEP2, and overrides the RD parameter on the EXEC statement for PSTEP3. In-stream DD statement PSTEP1.DD1 modifies DD statement DD1 in PSTEP1; it nullifies the VOLUME=SER parameter and overrides the UNIT and DISP parameters. Note that the parameters are not in the same order in the overriding and overridden statements. In-stream DD statement PSTEP1.INDS is added to PSTEP1, supplying in-stream data to be read by program WT1. In-stream DD statement PSTEP2.DD3 modifies DD statement DD3 in PSTEP2; it overrides the DISP parameter. Note that the entire parameter is coded, even though only the second subparameter is being changed. In-stream DD statement PSTEP3.DD5 nullifies DD statement DD5 in PSTEP3. However, DD statement DD5 will be checked for correct syntax. In-stream DD statement PSTEP3.DD6 modifies DD statement DD6 in PSTEP3; it overrides the DSNAME parameter. In-stream DD statement PSTEP3.DD8 modifies DD statement DD8 in PSTEP3; it nullifies the EXPDT parameter. Note that the EXPDT keyword cannot have a null value. Therefore, you cannot nullify EXPDT by setting it to a substitution text in the procedure DD and then nullifying the symbol on the invoking EXEC statement. EXPDT can only be nullified by not coding a value for it on the overriding DD statement. Note that procedure DD statements DD2, DD4, and DD7 were not modified. |
Copyright IBM Corporation 1990, 2014
|