JCL PARM parameter

JCL COND Parameter JCL EXEC Statement

Advertisements


The PARM parameter is used to pass the data from JCL to program.

PARM always pass the data from JCL to current processing program by the step.

If JCL needs to pass more than one sub parameter, those should be separated by comma (,) which are enclosed in parentheses/quotes

PARM parameter can pass maximum 100 characters.

Quotes and comma are not included in 100 characters.

The program receives the PARM data by using linkage section.

The program linkage section declaration should have a COMP field along with 100 bytes field.

The COMP field in the program contains the length of the data passed from JCL.

To add the PARM in the second line, second line should start from 16th position.

It is used to pass input data for the executing program.

Maximum data that can be sent to program is 100 Bytes.

This passing input will be received through linkage section.

Syntax:

	PARM = parm-data 

Syntax with EXEC:

	// Step-name EXEC PGM=program-name, PARM = parm-data 

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


JCL COND Parameter JCL EXEC Statement

Advertisements