COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-29
COBOLLIB Routines in System Code Space
COBOLLIB Routines in System Code Space
If you want the routines from the COBOLLIB file to run as part of the system library,
and hence in the system code space, then your system manager must have
incorporated the routines in the system library at system generation time. The
COBOL85 compiler must be able to validate your ENTER statement, which requires
the file CBLIBEXT.
CBLIBEXT is part of every HP COBOL product version. It contains empty declarations
of the COBOLLIB routines. Your system manager can bind all the CBLIBEXT routines
into COBOLEXT.
If you want the COBOLLIB routines to execute outside your user code space, you can
arrange this. The COBOL85 compiler does not accept ENTER statements unless the
compilers can verify that the parameters in the statement correspond to those
expected by the routine being called.
ZCOBSRL Overview
ZCOBSRL, a native SRL, is the native HP COBOL run-time library. It contains the
HP COBOL run-time routines which, for the COBOL85 compiler, reside in either the
system library, CBL85UTL, or COBOLLIB. ZCOBSRL routines are not bound into a
user object file.
The NMCOBOL compiler consults ZCOBSRL automatically. ZCOBSRLs resides on the
subvolume $SYSTEM.SYSnn.
Table 13-9. ZCOBSRL Routines (page 1 of 2)
Utility Routine
COBOL_ASSIGN_
COBOL_COMPLETION_
COBOL_CONTROL_
COBOL_FILE_INFO_
COBOL_GETENV_
COBOL_PUTENV_
COBOL_RETURN_SORT_ERRORS_
COBOL_REWIND_SEQUENTIAL_
COBOL_SETMODE_
COBOL_SET_SORT_PARAM_TEXT_
1. Replaces COBOLSPOOLOPEN routine (for level 2 spooling) and Guardian environment routines (for level 3
spooling)
2. Guardian environment only