The procedure attributes are first set in the procedure head, using the SET-PROCEDURE-OPTIONS command. If different attributes are to apply when the procedure is executed, they may then be modified with the MODIFY-PROCEDURE-OPTIONS command (this does not apply to the SYSFILE environment).
The SET-PROCEDURE-OPTIONS command must be the first command in the procedure head. If SET-PROCEDURE-OPTIONS is used with no operands, then the default values set in the current syntax file will apply. If the default values described in the manual for the procedure attributes are to be used, then SET-PROCEDURE-OPTIONS must be omitted.
The SET-PROCEDURE-OPTIONS command can be used to set the following attributes:
which command can be used to call the procedure
whether a separate SYSFILE environment has to be set up
the length in which procedure records are evaluated
whether logging occurs and what can be logged
whether the procedure can be interrupted
whether error handling is activated when data is read in instead of a command
what character is to serve as an escape character in data records
whether the implicit declaration of variables is allowed
whether job variables are taken into account in expression replacement
whether the error handling is compatible with the spin-off response or is to be activated depending on the return code
whether certain SDF-P messages are to be suppressed
Each of these procedure attributes corresponds to an operand in the SET-PROCEDURE-OPTIONS (or MODIFY-PROCEDURE-OPTIONS) command. The sections below provide a short explanation of the meaning of these attributes and the function of the corresponding attributes.