Top: f77 Up: 13 - Statements
Previous: 13,5 - ASSERT Next: 13,7 - Assignment
Section 13,6: ASSIGN
Assigns the value of a statement label to an integer variable.
Statement format:
ASSIGN s TO v
s Is the label of an executable statement or a
FORMAT statement. You must specify the label
as an unsigned integer (from 1-5 characters
long, using digits 0-9).
v Is an integer variable.
When the value of a statement label is assigned to an integer
variable: the variable can then be used as a transfer destination
in a subsequent assigned GOTO statement or as a format specifier in
a formatted I/O statement. The ASSIGN statement must be in the
same program unit as and must be executed before the statement(s)
in which the assigned variable is used.
Top: f77 Up: 13 - Statements
Previous: 13,5 - ASSERT Next: 13,7 - Assignment