Directly Linking Client, Server, and Connection Libraries

Direct linkage is a method of linking libraries by way of their library identifiers or task variables. Direct linkage was introduced previously in this section under Directly Linking to Server Libraries and Directly Linking Connection Libraries.

LINKLIBRARY Function for Direct Linkage

The direct form of the LINKLIBRARY function is available in both ALGOL and NEWP. The following is an example of such a LINKLIBRARY call:

LINKLIBRARY(LIB1, LIBRARY = LIB2);

In this example:

  • LIB1 must be the library identifier from a client library declaration or a connection library declaration. If LIB1 is a connection library identifier, it can optionally include a connection index (for example LIB1[3]).

  • LIB2 must be a connection library identifier (with or without a connection index), a client library identifier, or a task variable. If a task variable is used, it must be the task variable of a frozen server library process.

Direct Linkage Combinations

Thus, depending on the types of identifiers you specify as the first and second parameters, you can establish any of the following direct linkages:

  • Client library to server library

  • Client library to connection library

  • Connection library to connection library

  • Connection library to server library

  • Connection library to client library