Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

DECLARE-PARAMETER Declare procedure parameters

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

NAME = list-poss(2000): <structured-name 1..20>(...)


<structured-name 1..20>(...)




INITIAL-VALUE = *NONE / *PROMPT(...) / <text 0..1800 with-low expr>





*PROMPT(...)







PROMPT-STRING = *STD / <text 0..1800 with-low string-expr>







,DEFAULT-VALUE = *NONE / <text 0..1800 with-low expr>







,SECRET-INPUT = *NO / *YES




,TYPE = *ANY / *STRING / *INTEGER / *BOOLEAN




,TRANSFER-TYPE = *BY-VALUE / *BY-REFERENCE

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


0CMD0001No error

1CMD0202Syntax error

1SDP0118Command in false context

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

130SDP0099No further address space available