FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-33
END IF Statement
Examples
ENDFILE 40
ENDFILE (40, IOSTAT=error, ERR=300)
END IF Statement
The END IF statement defines the end of a block of statements that began with an IF,
ELSE IF, or ELSE statement. For more information about the END IF statement, see
the IF Statement—Block on page 7-60.
ENTRY Statement
The ENTRY statement provides an alternate entry point for a subprogram. It also
enables you to specify an alternative dummy argument list for the subprogram.
name
is the symbolic name of the entry point.
dummy
is a dummy argument that can be a variable name, an array name, a RECORD
name, a dummy procedure name, or an asterisk (*).
Considerations
•
Execution of a subprogram normally begins with the first executable statement
following the FUNCTION or SUBROUTINE statement. An ENTRY statement
enables you to begin execution of a function or subroutine at a location other than
the first executable statement of the subprogram. A subprogram can have multiple
entry points.
•
An ENTRY statement in a function subprogram identifies an entry point that you
can reference as an external function. An ENTRY statement in a subroutine
identifies an entry point that you can reference as a subroutine.
•
You can place an ENTRY statement anywhere after the SUBROUTINE or
FUNCTION statement in the subprogram. You cannot, however, place an ENTRY
statement in the body of a block-IF statement or the body of a DO loop.
•
If there are no dummy arguments, you can write the ENTRY statement as follows:
ENTRY name
ENTRY name [ ( [ dummy [, dummy ]... ] ) ]










