The procedure parameters needing an actual value during the procedure run are declared with the DECLARE-PARAMETER command. Furthermore, the way the parameter values are passed to the procedure is defined (initial value, prompting, ...). Procedure parameters may only be declared in the procedure header.
Procedure parameters are variables local to the procedure in SDF-P: When defined in the procedure header, they implicitly have SCOPE = *CURRENT.
The names of the procedure parameters are also keywords for the procedure parameters in the PROCEDURE-PARAMETERS operand of the CALL-PROCEDURE, ENTER-PROCEDURE and INCLUDE-PROCEDURE commands.
DECLARE-PARAMETER | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Return codes
The following return codes can thus appear only if DECLARE-PARAMETER is used in another (i.e. wrong) context:
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
1 | SDP0118 | Command in false context | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
130 | SDP0099 | No further address space available |