READandDATAstatements can conveniently initialize multiple variables from data embedded in the program. An array may be read in row-major order using the full array specifier, "(*)".DATAstatements are stored as strings and theVALfunction is used to read numeric values. The value is rounded to an integer if an integer variable is specified.
The firstREADstatement in a context reads the firstDATAstatement in that context. EachREADstatement thereafter maintains aDATApointer that moves to the next item after each is read from theDATAstatement. TheDATApointer can be reset to the beginning of anyDATAstatement in the context with theRESTOREstatement.
Complex numbers are read in rectangular form, the real part first, followed by the imaginary part. The two parts should be separated by a comma.