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-VARIABLE Declare variable

DECLARE-VARIABLE is used to define the attributes of this variable and possibly an initial value as well.
Job variables can be integrated in SDF-P via the CONTAINER operand.

DECLARE-VARIABLE Alias: DCV

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


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




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




,TYPE = *ANY / *STRING / *INTEGER / *BOOLEAN / *STRUCTURE(...)





*STRUCTURE(...)







DEFINITION = *DYNAMIC / *BY-SYSCMD / <structured-name 1..20>

,MULTIPLE-ELEMENTS = *NO / *ARRAY(...) / *LIST(...)


*ARRAY(...)




LOWER-BOUND = 0 / *NONE / <integer -2147483648..2147483647>




,UPPER-BOUND = *NONE / <integer -2147483648..2147483647>


*LIST(...)




LIMIT = *NONE / <integer 1..2147483647>

,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(...) / *JV(...)


*VARIABLE(...)




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




,SCOPE = *VISIBLE / *TASK


*JV(...)




JV-NAME = <filename 1..54>




,STATE = *ANY / *NEW / *OLD

Return codes

(SC2)

SC1

Maincode

Meaning/Guaranteed messages


0CMD0001No error
10CMD0001Nothing executed; element already declared

1CMD0202Syntax error

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

64CMD0216Do not have required privilege

64SDP0091

Semantic error

Guaranteed messages: SDP1018, SDP1030


130SDP0099No further address space available