Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

READ-VARIABLE Assign values to variables

The READ-VARIABLE command is used to read data from an input medium and to store the data in a variable. The data is read record by record. The operation is terminated when the string *END-OF-CMD or the end of a file (EOF) is encountered.

READ-VARIABLE Alias: RDV

VARIABLE-NAME = *BY-INPUT(...) / *LIST(...) / list-poss(2000): <composed-name 1..255>


*BY-INPUT(...)




PREFIX = *NONE / <composed-name 1..255>


*LIST(...)




LIST-NAME = <composed-name 1..255>




,WRITE-MODE = *REPLACE / *EXTEND

,STRING-QUOTES = *OPTIONAL / *YES / *NO

,INPUT = *TERMINAL(...) / <filename 1..54 without-gen-vers>(...) / *VARIABLE(...) /





*LIBRARY-ELEMENT(...) / *SYSDTA(...)


*TERMINAL(...)




PROMPT-STRING = '>>' / <text 0..1800 with-low>




,SECRET-INPUT = *NO / *YES


<filename 1..54 without-gen-vers>(...)




REMOVE-KEY = *YES / *NO




,BEGIN-RECORD = *FIRST / <integer 1..2147483647>




,END-RECORD = *LAST / <integer 1..2147483647>




,BEGIN-COLUMN = *FIRST / <integer 1..2147483647>




,END-COLUMN = *LAST / <integer 1..2147483647>




,PATTERN = *NONE / <c-string 0..1800 with-low>




,PATTERN-TYPE = *STRING / *REGULAR-EXPRESSION


*VARIABLE(...)




VARIABLE-NAME = <composed-name 1..255>


*LIBRARY-ELEMENT(...)




LIBRARY = <filename 1..54 without-vers>




,ELEMENT = <composed-name 1..64>(...)





<composed-name 1..64>(...)







VERSION = *HIGHEST-EXISTING / <composed-name 1..24>




,TYPE = S / <alphanum-name 1..8>


*SYSDTA(...)




REMOVE-KEY = *YES / *NO

Return codes

It is possible that part of the command has already been processed and executed before the error occurs. In this case, the result of the command is not guaranteed.

(SC2)

SC1

Maincode

Meaning/Guaranteed messages


0CMD0001No error
20SDP2000Warning: not all elements of the input list could be processed successfully.
Guaranteed message: SDP2000

1CMD0202Syntax error

1SDP0118Command in false context

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

64SDP0089INPUT error

64SDP0091Semantic error
Guaranteed messages: SDP1008

64SDP2001None of the elements could be read in

130SDP0099No further address space available