JCL EXEC PROC

JCL - EXEC PGM JCL - EXEC TIME

Advertisements


PROC parameter is used to specify the procedure name the system is to execute.

The procedure can be instream or cataloged procedure.

PROC parameter is used to identify the procedure which needs to execute by the system.

PROC parameter is optional to execute the procedure.

Procedure can be directly coded with EXEC statement without PROC keyword.


Syntax:

{PROC=procedure-name}
{Procedure-name     }

Procedure-name Identifies the procedure to be executed.

Procedure-name is alias name or member name for cataloged procedure.

Procedure-name is name on the PROC statement for instream procedure.

Procedure-name is of length 1 through 8 characters.

Procedure-name allows alphanumeric or national characters.

The first character must be alphabetic or national.


Note:

PROC= parameter can be omitted to execute the PROC.


Example 1:

//STEP01  EXEC PROC=MTHPROC

The above statement calls the cataloged or in-stream procedure named MTHPROC.


Example 2:

//STEP01  EXEC MTHPROC

The above statement calls the cataloged or in-stream procedure named MTHPROC.


JCL - EXEC PGM JCL - EXEC TIME

Advertisements