PROCUDURE:- (PROC)
It is a re-usable component, which consist of activities & dd .
Procedures are 2 types :
Declaration of Instream Procedure:
It is a re-usable component, which consist of activities & dd .
Procedures are 2 types :
- Instream procedure.
- Catalog procedure.
Working with PROC
It has mainly 3 steps. They are.
It has mainly 3 steps. They are.
- Declaration of PROC.
- EXECUTION OF PROC.
- CHANGING PARAMETERS.
1.Instream PROC : It Is defined within a JOB, with PROC name starting with PROC operand.
Rules:
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
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.
ConversionConversion EmoticonEmoticon