
Commands - 27
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 RE AD sta tement.
REMARK S: 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 REA D 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 mar ks.
You can use the RESTORE statement to reread information from the beginning of the list of DATA
statements. See the REST ORE statement.
RELATED: READ, RESTORE
EXAMPLE: See the RE AD statement.
ERROR: none
Commenti su questo manuale