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-CONSTANT Declare variable with constant value

The DECLARE-CONSTANT command is used to declare one or more variables and to assign them a constant value, thus protecting these values from being overwritten. Variables with a constant value are treated in much the same way as ordinary variables. You cannot, however, modify their value using SET-VARIABLE or remove the value using FREE-VARIABLE.

DECLARE-CONSTANT

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


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




VALUE = <text 0..1800 with-low expr>




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

,SCOPE = *CURRENT(...) / *PROCEDURE(...) / *TASK(...)


*CURRENT(...)




IMPORT-ALLOWED = *NO / *YES


*PROCEDURE(...)




IMPORT-ALLOWED = *NO / *YES


*TASK(...)




STATE = *ANY / *NEW / *OLD

,CONTAINER = *STD / <composed-name 1..64> / *VARIABLE(...)


*VARIABLE(...)




VARIABLE-NAME = <structured-name 1..20>




,SCOPE = *VISIBLE / *TASK

Return codes

(SC2)

SC1

Maincode

Meaning/Guaranteed messages


0CMD0001No error
10CMD0001Warning; element already declared

1CMD0202Syntax error

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

64CMD0216Do not have required privilege

64

SDP0091

Semantic error

Guaranteed messages: SDP1018, SDP1030


130SDP0099No further address space available