COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-58
ENTER
ENTER
ENTER calls a routine written in a language other than COBOL. (To call a COBOL
routine, use CALL.)
In some implementations of COBOL, ENTER marks the beginning of an embedded
routine in some other language.
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
The COBOL85 compiler reports an error if the called routine was not written in the
specified language, except when the specified language is C and the routine was
written in C++, which the COBOL85 compiler handles as if it were C.
Note. If you use the ENTER statement in the OSS environment, see Mixed-Language
Programs.
Compiler Environment language
COBOL85 Guardian C, TAL, FORTRAN, or Pascal
OSS C or TAL
NMCOBOL Unnecessary, because the compiler can determine the
language of the called program, but if specified,
language must be HP C or TAL.
If language is TAL, the compiler expects a pTAL
program. The compiler does not accept TAL programs.
ENTER
OF
language
routine-name
USING
parameter
IN
file-mnemonic
OMITTED
GIVING
return-value
VST148.vsd