COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-20
CALL
program-name
is the program-name in the called program’s PROGRAM-ID paragraph. It
can be expressed as a nonnumeric literal (enclosed in quotation marks) or the
actual name (not enclosed in quotation marks). The form enclosed in quotation
marks is recommended.
If the program is not compiled with the PORT directive or does not run in the
CRE, the called program must be a COBOL program. If the program is
compiled with the PORT directive and runs in the CRE, the called program can
have been compiled with any of these HP compilers:
file-mnemonic
is the alias for the object file to be searched for the called program. The
association between file-mnemonic and the object file is established by the
File-Mnemonic clause of the SPECIAL-NAMES paragraph. The file-
mnemonic is not part of program-name and is not a qualifier that can make
program-name unique.
For the NMCOBOL compiler, file-mnemonic must specify either:
A linkfile
An archive file
identifier
can be used only if you are calling a COBOL program. It is an alphanumeric
identifier whose value, the program-name in the called program’s
PROGRAM-ID paragraph, is not known until run time. The compiler ignores
leading and trailing spaces in program-name and converts it to uppercase.
You must include the called program in the run unit, usually with a separate
bind or link step.
All parameters are passed as extended addresses; therefore, formal
parameters in the called program must not specify ACCESS MODE
STANDARD.
Architecture HP Compilers
TNS C
COBOL85
FORTRAN
Pascal
TAL
TNS/R C
C++
NMCOBOL
pTAL