Cataloged and in-stream procedures can invoke other procedures (up to 15 levels of nesting). In a procedure, an EXEC statement can invoke another procedure, which can contain an EXEC statement to invoke another procedure, and so on. Note that an in-stream procedure cannot be defined within another procedure. The sequence PROC, PROC, PEND, PEND is not valid.
The following shows how procedures can be nested:Procedure C:
The following statements are equivalent to the nested procedures shown above and show the levels of nesting (scoping) for the procedures.//JOB1 JOB Level 0
Modifying Nested Procedures
The rules for modifying OUTPUT JCL and DD statements described apply to nested procedures. In addition, the following rules apply to modifying statements in nested procedures.
Examples of Modifying Nested Procedures
Examples are as follows.
The following example shows overrides and additions to DD statements.
The following statements are equivalent to the nested procedures shown above.//JOB1 JOB
The following example shows nested procedures and invalid overrides of DD statement parameters that result in JCL errors. The example refers to the rules that appear in “Modifying Nested Procedures”
IBM-JCL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||COBOL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IMS/DB Interview Questions||Mainframe DB2 Interview Questions|
Job Control Statements
Job Control Tasks
Format Of Statements
Syntax Of Parameters
Procedures And Symbols
Jcl Command Statement.
Special Dd Statements
If/then/else/endif Statement Construct
Output Jcl Statement
Xmit Jcl Statement
Jes2 Control Statements
Jes3 Control Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.