When a procedure is called with CALL-PROCEDURE or INCLUDE-PROCEDURE, the calling procedure can use the PROCEDURE-PARAMETERS operand to pass parameters to the called procedure. This operation is referred to as “parameter transfer”.
These procedure parameters must be declared in the procedure head of the called procedure by means of the DECLARE-PARAMETER command (see chapter “Creating S procedures”).
SDF-P handles the procedure parameters declared with DECLARE-PARAMETER as variables local to the procedure, i.e. as variables with SCOPE = *CURRENT (see the description of the DECLARE-VARIABLE command in "DECLARE-VARIABLE Declare variable ").
Procedure parameters can be specified as keyword parameters or as positional parameters.
Depending on the type of parameter transfer specified for the procedure in the DECLARE-PARAMETER command, either values or names of variables containing values can be specified for the parameters in the call.