EXEC PROC Parameter


Note! PROC parameter can be coded only at the step level.

PROC parameter is used to specify the procedure that needs to be run by the system. The procedure can be an instream or cataloged.

PROC parameter is optional, and the procedure can be directly coded with the EXEC statement without the PROC keyword.

Syntax -

EXEC {PROC=procedure-name}
or
EXEC {procedure-name }
procedure-name Specifies the procedure name to be executed.

Examples -


Scenario1 - Calls procedure named MTHPROC with PROC=.

//STEP01  EXEC PROC=MTHPROC

Scenario2 - Calls procedure named MTHPROC.

//STEP01  EXEC MTHPROC