COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-28
COBOLLIB Routines in User Code Space
You can put the routines that are in the file COBOLLIB in any one of these places:
•
COBOLLIB Routines in User Code Space
•
COBOLLIB Routines in User Library Space
•
COBOLLIB Routines in a Special TNS User Library
•
COBOLLIB Routines in System Code Space
COBOLLIB Routines in User Code Space
When you want to use a routine from the COBOLLIB file, you can have it bound into
your loadfile to run in your user code space. Include a SEARCH directive that specifies
$SYSTEM.SYSTEM.COBOLLIB (or the volume and subvolume where your installation
has stored the COBOLLIB file).
COBOLLIB Routines in User Library Space
You can set up the routines from the COBOLLIB file to run in the user library space. To
do this, include a LIBRARY directive of the form
?LIBRARY $SYSTEM.SYSTEM.COBOLLIB
during your compilation. The compiler must be able to validate your ENTER statement,
which requires the CBLIBEXT file—see Files of Dummy Routines. For more
information on user libraries, see the Binder Manual.
COBOLLIB Routines in a Special TNS User Library
You can use Binder to create a special TNS user library of your own that includes
whichever routines you need from the COBOLLIB file, and use the LIBRARY directive
to make that your user library. For more information on TNS user libraries, see the
Binder Manual.
Topics Sources
SMU routines in general Saved Message Utility (SMU) Overview
Descriptions of individual SMU routines Saved Message Utility (SMU) Overview
ZCOBSRL file ZCOBSRL Overview
ZCRESRL file ZCRESRL Overview
Descriptions of non-SMU individual
COBOLLIB and ZCOBSRL routines
COBOLLIB, CLULIB, and ZCOBSRL Routines