JCL Instream Procedure

JCL Procedures JCL Catelog Procedure

Advertisements


INSTREAM PROCEDURE will be defined within the JCL.

The coding of in-stream proc will start with PROC and end with PEND.

Maximum 15 INSTREAM PROCEDUREs can be coded in single JOB.

PROCLIB is not required to code in the JCL hence the procedure code will exist in the inside of JCL.

INSTREAM PROCEDURE can’t be coded within another INSTREAM PROCEDURE.

INSTREAM PROCEDURE definition executes only when we call the procedures.

PEND is mandatory.

INSTREAM PROCEDURE allows CNTL, comment, DD, ENDCNTL, EXEC, IF/THEN/ELSE/ENDIF, INCLUDE, OUTPUT JCL, and SET statements only.

INSTREAM PROCEDURE will not allow any other statements apart from above.

INSTREAM PROCEDURE is not checked for correct syntax until an EXEC statement that calls the procedure.


Syntax:


	//PROC
	//……
	//PEND
	
		OR
	
	//name  PROC [parameter  [comments]]
	//name  PROC


If any questions on the above, post your queries on Jcl Discussion forum


JCL Procedures JCL Catelog Procedure

Advertisements