FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-14
CALL Statement
Considerations
•
Actual arguments in a CALL statement must agree in number, order, and type with 
the dummy arguments specified in the SUBROUTINE statement of the called 
subroutine.
•
An actual argument cannot be a character expression involving the concatenation 
of an operand having a length specification of (*), unless the operand is the 
symbolic name of a constant.
•
You can use a dummy argument of a subprogram as an actual argument in a CALL 
statement within that subprogram.
•
For additional information about the CALL statement and the use of alternate 
return specifiers, see Section 4, Program Units.
•
For information about calling non-FORTRAN routines, see Section 13, Mixed-
Language Programming. 
Example
In the example below, the CALL statement calls the subroutine CHECKBAL, passing 
the actual arguments DEPOSIT, WITHDRAWAL, and SERVICE to the subroutine.
PROGRAM main
CALL checkbal(deposit, withdrawal, service)
.
END
SUBROUTINE checkbal(d, w, s)
REAL d, w, s
.
END










