



Initialising Variables DATA statement consists of a list of the variable names each
followed by a constant enclosed in a pair of slashes:
DOUBLE PRECISION EPOCH LOGICAL OPENED CHARACTER INFILE*20 DATA EPOCH/1950.0D0/, OPENED/.TRUE./, INFILE/'B:OBS.DAT'/ |
DATA statements must follow all specification statements. An alternative
form is to give a complete list of names can be given first and followed by a separate
list of constants:
DATA EPOCH, OPENED, INFILE / 1950.0D0, .TRUE., 'B:OBS.DAT'/ |
DATA statements or to use one with many continuation lines. It is, of course,
illegal to have the same name appearing twice.
Character variables can be initialised in sections using the substring notation if this is more convenient:
CHARACTER*52 LETTER DATA LETTER(1:26)/'ABCDEFGHIJKLMNOPQRSTUVWXYZ'/, $ LETTER(27:) /'abcdefghijklmnopqrstuvwxyz'/ |
DATA
statements.