linkageKey

The linkageKey statement property references an element in a linkage options part. The element indicates how to implement a call or transfer in the EGL-generated code.

Here is an example call statement that includes the linkageKey property:
call nextProgram (myVar) { linkageKey="CICS3" };

In relation to a call, the assigned value refers to the pgm attribute in a callLink element. In relation to a transfer, the assigned value refers to the toPgm attribute in a transferToProgram or transferToTransaction element.

The default value of the linkageKey property is the name of the invoked program, but only if you specify the program name directly in the coded statement, as in the following example:
call "PROG3" (myVar);
You need the linkageKey property only if the following cases are both in effect:
When coding multiple call or transfer statements, you can refer to the same linkage part element in the following ways:

For details on wild cards in attribute values, see “Overview of the linkage options part.”


Feedback