COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-59
ENTER
For the COBOL85 compiler, the absence or value of language determines these
things:
°
The protocol used to pass string parameters
°
The language in which the called routine must have been written
For the COBOL85 compiler:
°
If language is absent, FORTRAN protocol is used to pass string parameters
and the called routines must have been written in TAL. Omit language when
calling TAL routines that can be called by either COBOL or FORTRAN, such as
Saved Message Utility (SMU) routines.
°
If language is present, the protocol of the language specified is used to pass
string parameters and the called routine must have been written in the same
language.
routine-name
is either the actual name of the called routine or it is a nonnumeric literal whose
value is the name of the called routine.
If routine-name is a nonnumeric literal or a COBOL reserved word, or if it
contains a caret (^) or underscore (_), it must be enclosed in quotation marks.
If routine-name is not enclosed in quotation marks, the compiler handles it as
the actual name of the routine. Quotation marks are recommended.
If routine-name specifies an C or C++ function whose name includes lowercase
letters, the call fails, because the compiler automatically converts all names to
uppercase.
file-mnemonic
specifies the object file containing the called routine’s code and data blocks,
enabling the BIND process or nld or ld utility to find the routine during preparation
of the run unit.
For the NMCOBOL compiler, file-mnemonic must specify either:
A linkfile
An archive file
Establish the association between file-mnemonic and the operating system file
name in the SPECIAL-NAMES paragraph of the Environment Division.
The file-mnemonic phrase is not part of the routine-name. You cannot use
the phrase to make the routine-name unique.