CRE Programmer's Guide

Common Language Utility (CLU) Library Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
9-35
COBOL Considerations
COBOL Considerations
You can use the SMU functions in the TNS CRE, in a COBOL run-time environment, or
in the native CRE. Rules for using the pre-D20 SMU functions (and the ENV directive)
are given in the
COBOL Manual for TNS and TNS/R Programs. The current SMU
functions in this section differ from the pre-D20 SMU functions only in minor ways.
These differences are described in the following paragraphs.
You invoke one of the current SMU functions as follows:
TAL
specifies that the function is written in TAL.
function-name
is the name of a new SMU function, enclosed in quotation marks; for example:
ENTER TAL "SMU_Param_GetText_"
library-reference
is as described in the COBOL manuals, except that library-reference is
contained in file CLULIB (which is usually in the $SYSTEM.SYSTEM subvolume),
rather than in a product file such as COBOLLIB. CLULIB contains copies of all pre-
D20 and current SMU functions.
parameter
is one of the SMU function parameters in this section. (The cplist parameter of
pre-D20 SMU functions is not a part of the current SMU functions.)
portion
is an alphanumeric data item that specifies the message part you want to
retrieve or change. The compiler implicitly computes and transmits the size, in
bytes, of
portion to the function.
text
is an alphanumeric data item for retrieving text or for specifying new text. The
compiler implicitly computes and transmits the size, in bytes, of
text to the
function. Any JUSTIFIED clause of the data item is ignored, and text is
truncated or extended to fit the data item.
ENTER [ TAL ] function-name [ OF library-reference ]
USING parameter [ , parameter ] ...
[GIVING result ]