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

Calling Other Programs and Routines
HP COBOL Manual for TNS/E Programs520347-003
23-13
COBOL Utility Routines
COBOL Utility Routines
HP provides many COBOL utility routines that your COBOL program can call with the
ENTER statement. These routines are described in Section 13, Libraries and Utility
Routines.
ENFORM Programs
ENFORM, a component of the Encompass distributed database management system,
is a powerful nonprocedural language for querying or developing reports on a relational
database.
If your database is described in the Data Definition Language (DDL), you can write an
ENFORM query to specify the records you want from the database and the order in
which you want ENFORM to deliver them. You then compile that ENFORM query into
a disk file and include code in a COBOL program to start ENFORM as a separate
process.
The operating environment procedure ENFORMSTART initiates the query processor.
Each time the ENFORMRECEIVE procedure executes, it accepts either a record that
ENFORM built and transmitted to the program through the interprocess message
system or an error value. The ENFORMFINISH procedure terminates the processing
with the query processor. This mechanism is called the host-language interface and is
documented in the ENFORM User’s Guide. You cannot use this mechanism from a
Pathway server if the ENFORM routines use $RECEIVE.
Restrictions on Calling Non-COBOL Routines
An HP COBOL program can call routines written in native HP C, native HP C++, and
pTAL.
These topics explain the restrictions on calling non-COBOL routines from HP COBOL.
For information about passing HP COBOL parameters to such routines, see Passing
Parameters to Non-COBOL Routines.
Topics:
HP C Routines
HP C++ Function Name Consideration