COBOL Manual for TNS/E Programs (H06.03+)

Procedure Division Verbs
HP COBOL Manual for TNS/E Programs520347-003
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, the called program
must be a COBOL program.
If the program is compiled with the PORT directive, the called program can be
compiled by any of these TNS/E compilers:
C
C++
ECOBOL
EpTAL
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.
file-mnemonic must specify either:
A linkfile
An import library
A DLL
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.