JCL 6 - Procedures in JCL

PROCUDURE:- (PROC)
     It is a re-usable component, which consist of activities & dd .


Procedures are 2 types :

  1. Instream procedure.
  2. Catalog procedure.
Working with PROC
It has mainly 3 steps. They are.
  1. Declaration of PROC.
  2. EXECUTION OF PROC.
  3. CHANGING PARAMETERS.
1.Instream PROC :  It Is defined within a JOB, with PROC name starting with PROC operand.
Rules:
  • MAX 15 InstreAm PROCS can be defined by one JOB.
  • PROC can be executed with in a JCL program in any activity.
 Ex :
    Copying data from one data set to another dataset.
    Creation/deletion of datasets.
    Sorting data

Declaration of Instream Procedure:
  • Procedure is declared in a JOB with PROC Operand and PROCEDRUE NAME.
  • Procedure must be terminated with PEND statement.
  • Max 15 instream procedures can be defined in one JCL pgm.
  • Procedure can be executed by any-activity by using EXEC procedure name.
  • Parameters are changed by using, activity name.DD as a DD Name for NEW DATA SETS.
                             
Previous
Next Post »