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

Calling Other Programs and Routines
HP COBOL Manual for TNS/E Programs520347-003
23-12
HP COBOL Run-Time Routines
Generations of Operating System Routines
Like the file ECOBEXT, the files ECOBEX1 and ECOBEX0 are part of every
HP COBOL RVU. Like the file EXTDECS, the files EXTDECS1 and EXTDECS0 are
part of every operating environment RVU. This table shows the relationship between
these files.
Different generations of the same operating system routine might have different formal
parameter lists (see Extensible and Variable Parameter Lists). Because of this,
programs compiled with ECOBEX0 might execute only on the very latest RVU of the
operating environment, programs 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.
File of Operating
System Routine
Declarations
Generation of
Operating System
Routines
File of Dummy Versions of
operating system routines
EXTDECS0 Latest ECOBEX0
EXTDECS1 Next-to-latest ECOBEX1
EXTDECS Second-next-to-latest ECOBEXT