Go BackJCL: Procedures

Synopsis
JCL: Procedures defines and explains procedure libraries, instream procedures and cataloged procedures.  It discusses positional, keyword and symbolic parameters as well as overriding parameters of an EXEC statement in a procedure.  Overriding DD statements in a procedure are also explained.

The material in this course applies to all releases of the MVS operating system since the original release of MVS/ESA. The majority of the concepts presented can be used to code JCL in all releases of MVS.

Information that is specific to a particular release of MVS (for example: OS/390 MVS) will be clearly labeled. Otherwise, when you see MVS in this course, it refers to MVS/ESA and all subsequent releases.

Audience
This course is for end users, managers, programmers, JCL specialists, technical support staff and operations staff.

Time
7 - 14 hours

Product Code: JCL304
After completing this course, the student should be able to:
 
Identify the characteristics of both instream and cataloged procedures
State the rules that cover coding procedures
Explain what occurs with procedures at execution time
Identify the use of symbolic parameters with procedures
Describe considerations involved when overriding procedures
Explain how to modify parameters on the procedure's EXEC statement
Introduction
Defines an example jobstream that is used throughout the course.  Summarizes the differences between instream and cataloged procedures.
 
Purpose of JCL procedures
Resources needed to compile a COBOL program
Purpose of the JOB, EXEC and DD statements
Proper coding of these statements
Instream versus cataloged procedures
Conditions under which each type of procedure is used
INCLUDE groups and the INCLUDE   statement

Definition
Deals with the PROC, PEND and EXEC statements.  Presents rules for instream and cataloged procedures.
 
Purpose of PROC, PEND and EXEC statements
Six rules for coding an instream procedure
Six rules for coding a cataloged procedure
JCLLIB statement

Execution
Shows how procedures are merged with other JCL.  Describes what the various types of procedure statements look like in the job output.
 
How procedures are merged with other JCL
What cataloged and instream procedure statements look like in the job output
Purpose and use of JOB and PROC steps
Potential problems when the example procedure is executed more than once
Purpose of the DDNAME parameter

Symbolic Parameters
Describes the form and use of symbolic parameters.  Gives instructions for assigning values to symbolic parameters.  
 
Coding EXEC statements that assign a value to a symbolic parameter at execution time
Using SET statements to assign a  value to or define a symbolic parameter
Areas in a job listing that deal with symbolic parameters
Coding PROC statements used to supply default values to symbolic parameters
Rules for assigning default values
Using EXEC statements to nullify the value of a symbolic parameter
The result when a value is nullified or not nullified
Purpose and format of concatenated symbolic parameters
Situations for concatenation
Using symbolic parameters for commenting out existing JCL statements and adding new parameters or parameter values

Overriding Procedures
Outlines rules for overriding the DD statements in a cataloged procedure.  Describes what overrides look like on a job listing.  Discusses how to override a parameter on a procedure's DD statement and special DDname considerations when overriding.
 
Purpose and result of overriding a DD statement
Correct form for overriding DD statements
How successful and unsuccessful overrides appear in your job listing
Rules for overriding a parameter on procedure's DD statement
Correct format and placement of DDnames when overriding procedure statements


Modifying Parameters on an EXEC Statement
Covers the modification of EXEC keyword parameters.  
 
Purpose and result of modifying keyword parameters on the EXEC statement
Difference between qualified and unqualified overrides
Format and use of qualified overrides for keyword parameters
Required and suggested coding practices
Format and use of unqualified overrides for keyword parameters
Effects of REGION, PARM and TIME overrides
Symbolic and keyword parameters in procedures COMPILE and COMPLINK
Development of EXEC statements that accomplish desired modifications

Go Back