PARAMETER

Abbreviation: PARM

A parameter specified it in a PROCEDURE or ENTRY statement is contextually declared with the parameter attribute . The parameter should be explicitly declared with appropriate attributes, and additionally, the PARAMETER attribute may also be specified in the declaration for clarity.

The parameter name must not be subscripted or qualified in the declaration.

If a parameter is not explicitly declared, the default attributes are applied.

SUB: PROC (A, B);

    /* A and B both have the parameter attribute */
    DCL A FIXED BINARY (31) PARAMETER;
    DCL B FIXED BINARY (31);

END;