COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-85
COBOLLIB, CLULIB, and ZCOBSRL Routines
COBOLLIB, CLULIB, and ZCOBSRL Routines
This topic explains the individual routines in the COBOLLIB and ZCOBSRL files that
are not Saved Message Utility (SMU) routines. Not all of the CRE equivalents are in
the COBOLLIB file (see the table notes).
Programs compiled with the COBOL85 compiler can call all of the routines listed in
Table 13-18. Programs compiled with the NMCOBOL compiler can call only the new
routines.
An HP COBOL program that was compiled to run in the non-CRE environment can call
only the COBOL-environment routines. An HP COBOL program that was compiled to
run in the CRE can call only the CRE routines.
Topics:
COBOLASSIGN
COBOL_ASSIGN_
COBOLFILEINFO
COBOL_FILE_INFO_
COBOLSPOOLOPEN
CREATEPROCESS
Table 13-18. Non-SMU COBOLLIB Routines
Original Routine New Routine(s)
COBOLASSIGN COBOL_ASSIGN_
1, 2
COBOLFILEINFO COBOLFILEINFO
2
COBOL_FILE_INFO_
3, 4
COBOLSPOOLOPEN COBOL_SPECIAL_OPEN_
4
CREATEPROCESS CREATEPROCESS
5
CLU_PROCESS_CREATE
1, 6
1. In the CLULIB file for the COBOL85 compiler and the ZCOBSRL file for the NMCOBOL compiler
2. For the Guardian environment
3. For the OSS environment
4. In the CBL85UTL file for the COBOL85 compiler and the ZCOBSRL file for the NMCOBOL compiler
5. Cannot create a high-PIN process
6. Can create a high-PIN process
Note. If you omit an optional parameter when you call a COBOLLIB routine, you must put the
keyword OMITTED in its position if you specify subsequent parameters. Trailing OMITTEDs
are not required. (The syntax diagrams do not reflect this, because it would make them much
harder to read.)