HP 3000 Manuals

END Statement (Executable) [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

END Statement (Executable) 

The END statement indicates the end of a program unit, that is, the end
of a program, subroutine, function, or block data subprogram.

	       Click here to view figure.
            

Semantics 

If an END statement is executed in a subprogram, it has the same effect
as a RETURN statement.  If an END statement is executed in a main
program, the program terminates.

An END statement can be labeled, but it cannot be continued.  It must be
the last statement in a program unit.

                  Example                                      Notes 

---------------------------------------------------------------------------------------

PROGRAM xtest                               The END statement terminates program xtest.
INTEGER i
i = 1
PRINT *, i
END



MPE/iX 5.0 Documentation