VMS Help  —  FORTRAN  Statements  ASSIGN
  Assigns the value of a statement label to an integer variable.
  This feature has been deleted in Fortran 95; it was an obsolescent
  feature in Fortran 90.  VSI Fortran fully supports features
  deleted in Fortran 95.

  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.
Close Help