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

Procedure Division Verbs
HP COBOL Manual for TNS/E Programs520347-003
9-55
ENTER
In HP COBOL, ENTER is analogous to CALL but is used to call a non-COBOL routine.
An HP COBOL program’s mode and operating environment determine what types of
non-COBOL routines it can call. A called routine can have an ordinary, VARIABLE, or
EXTENSIBLE parameter list.
language
is unnecessary, because the compiler can determine the language of the called
program, but if specified, it must be C or TAL. If language is TAL, the compiler
expects a pTAL program. The compiler does not accept TAL programs.
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.
ENTER
OF
language
routine-name
USING
parameter
IN
file-mnemonic
OMITTED
GIVING
return-value
VST148.vsd