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

compiled with ECOBEX1 might execute only on the two most recent RVUs of the operating
environment, and programs compiles with ECOBEXT might execute only on the three most recent
RVUs of the operating environment.
Your system manager must verify that the appropriate file has the name ECOBEXT when you
compile your program. Any of the files ECOBEX0, ECOBEX1, or ECOBEXT can be named ECOBEXT.
If you need to use a version of the ECOBEXT file that is available on your system under a name
other than ECOBEXT, there are two ways to do it:
Create a subvolume containing the ECOBOL compiler and all the files it needs. Install the
appropriate version of ECOBEXT in that subvolume, under the name ECOBEXT. Use this
subvolume for your compilations; that is, instead of using a compilation command like
ECOBOL /IN XYZ/
use a compilation command like
RUN MYCOBVOL.ECOBOL /IN XYZ/
where MYCOBVOL is the subvolume you created.
Use the system volume for your compilations, but use a CONSULT directive to tell the compiler
to resolve external references from a file other than ECOBEXT.
HP COBOL Run-Time Routines
Your HP COBOL program calls HP COBOL run-time routines implicitly, not with ENTER statements.
HP COBOL run-time routines are in the dynamic link library ZCOBDLL. Their names begin with
“COBLIB_.” They execute in DLL code space.
COBOL Utility Routines
HP provides many COBOL utility routines that your COBOL program can call with the ENTER
statement. These routines are described in Chapter 13: Libraries and Utility Routines (page 599).
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
802 Calling Other Programs and Routines