Specifications

Commands - 25
DATA
Statement
SYNTAX: DATA constant [,constant] . . . .
PURPOSE: To provide a means to store numeric and string constants and object code programs. The data may be
accessed by the READ statement.
REMARKS: DATA statements are skipped over during execution and may be placed anywhere in the program.
A DATA statement may contain as many constants as will fit on a line, and any number of DATA
statements may be used in a program. The information contained in the DATA statements may be
thought of as one continuous list of items, regardless of how many items are on a line or where the
lines are placed in the program. The READ statements access DATA statements in line number
order.
Each constant may be a numeric or string constant. No expressions are allowed in the list. The
numeric constants may be decimal or hex. String constants in DATA statements need to be
surrounded by quotation marks.
You can use the RESTORE statement to reread information from the beginning of the list of DATA
statements. See the RESTORE statement.
RELATED: READ, RESTORE
EXAMPLE: See the READ statement.
ERROR: none