HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
CALL
Chapter 10 291
CALL
Invokes a subroutine.
Syntax
CALL
subr-name
[([
subr-act-arg-spec-list
])]
subr-name
is the name of the subroutine being invoked.
actual-argument-list
is a comma-separated list of entities of the form:
[
keyword
=]
actual-argument
actual-argument
is one of the following:
expression
variable
procedure-name
*
label
or &
label
keyword
is one of the dummy argument names of the subroutine being invoked. If
any
keyword
is specified, the subroutine interface must be explicit.
Description
A CALL statement is used to invoke (call) a subroutine, and to specify actual arguments, if any.
Execution of the subroutine begins with the first executable statement. The following
sequence of events occurs when a CALL statement executes:
1. Actual arguments that are expressions are evaluated.
2. The actual arguments are associated with the corresponding dummy arguments.
3. Control transfers to the subroutine being called, and the subroutine executes.