linkType in callLink element

The linkType property of the callLink element of the linkage options part specifies the type of linkage when the value of the type property is localCall. The linkType property affects the generation of the calling program. For COBOL in a CICS® environment, the linkType property also affects the generation of the called program.

Select a value from this list:
CICSLINK
Specifies that the call is from a CICS program to another program in the same CICS region. An EXEC CICS LINK command is used, with no system identifier. CICSLINK is the default value for COBOL programs generated for CICS.
DYNAMIC
If you are generating a COBOL program, specifies that the call is a dynamic COBOL call. In CICS programs, a dynamic call is more efficient than an EXEC CICS LINK but prevents you from using CICS CEDF to trace into the called program. DYNAMIC is the default value for COBOL programs generated for non-CICS environments.
LIBRARY
Specifies that the call is implemented as if the main function in the called program were a function in an EGL library. The benefit is speed at run time.

A single instance of the called program is available for a given run unit. The value of the unloadOnExit property is always set to NO for the called program. That property specifies whether to unload a called program when the called program ends.

If you specify the LIBRARY value for EGL-generated Java™ output, ensure that the output for the called program is available when the caller is being compiled. Otherwise, the compilation of the caller fails. You can avoid the problem if you generate the called program either when you generate the caller or before you generate the caller.

STATIC
If you are generating a COBOL program, specifies that a static COBOL call occurs, which means that you must link edit the called program with the calling program. For the z/OS® batch environment, STATIC is required if an EGL program calls or is called by a PL/I program.

Feedback