1.

What do you mean by PROC? State difference between an instream and a catalogued Proc.

Answer»

PROC represents Procedure. A JCL Procedure is a collection of statements within a JCL that perform a particular function. The JCL Procedures work the same way as language compilers and linkage editors across MULTIPLE JCL's. The EXEC statement may be used directly to code the procedure instead of the PROC keyword.

Syntax:   

//Step-name EXEC PROC=ProcedurenameOr //Step-name EXEC Procedurename

Here, 

  • Step-name specifies the ASSIGNED name to step.
  • EXEC specifies the type of JCL statement.
  • PROC specifies Procedure name.

Example 1:

//STEP05  EXEC PROC=MTHPROC Or //STEP05  EXEC MTHPROC

Use of PROC   

  • It ELIMINATES repetitive coding.
  • Code errors are eliminated.
  • Eliminates redundancy.

Types of procedures   

  • In-Stream Procedures: In-stream procedures are those WRITTEN within the same JCL. IDEALLY, it should begin with a PROC statement and end with a PEND statement.
  • Cataloged Procedures: A cataloged procedure is one that is separated from the JCL and coded in a different data store.


Discussion

No Comment Found