COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-38
CBL85UTL and ZCOBSRL Routines
CBL85UTL and ZCOBSRL Routines
This topic explains the individual routines in the CBL85UTL file, which is for the
COBOL85 compiler. The CRE routines are also in the ZCOBSRL file, which is for the
NMCOBOL compiler.
Corresponding COBOL-environment and CRE routines have the same parameters,
with this exception: COBOL85^COMPLETION has the parameter text-length, but
COBOL_COMPLETION_ does not (the CRE gets the text length from the specified text
instead).
If you omit an optional parameter when you call a CBL85UTL or ZCOBSRL 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.)
Table 13-16. CBL85UTL and ZCOBSRL Routines
COBOL-Environment Routine
1
CRE Routine
2
COBOL85^ARMTRAP None (unnecessary)
COBOL85^COMPLETION COBOL_COMPLETION_
None COBOL_CONTROL_
None COBOL_GETENV_
None COBOL_PUTENV_
COBOL85^RETURN^SORT^ERRORS
3
COBOL_RETURN_SORT_ERRORS_
3
COBOL85^REWIND^SEQUENTIAL COBOL_REWIND_SEQUENTIAL_
COBOL85^SET^SORT^PARAM^TEXT
3
COBOL_SET_SORT_PARAM_TEXT_
3
COBOL85^SET^SORT^PARAM^VALUE
3
COBOL_SET_SORT_PARAM_VALUE_
3
None COBOL_SET_MAX_RECORD_
None COBOL_SETMODE_
COBOL85^SPECIAL^OPEN
2
COBOL_SPECIAL_OPEN_
4
1. These routines are only in CBL85UTL, not in ZCOBSRL.
2. These routines are in both CBL85UTL and ZCOBSRL.
3. FastSort interface routine.
4. This routine replaces the COBOLSPOOLOPEN routine (for level 2 spooling) and Guardian environment
routines (for level 3 spooling). The COBOLSPOOLOPEN routine is in the COBOLLIB library.