EMS Stub Module
For sites that do not support DLL options, you can use an EMS Stub instead of a DLL option for COBOL applications.
The Stub source is located in:
Dataset: USERHLQ.C
Member: EMSSTUB
Library: EMSSTUB
To use EMS with C and COBOL programs, which prefers a statically linked EMS object, TIBCO EMS Client for z/OS (MVS) provides a stub module that dynamically resolves functions provided by the EMS DLL.
TIBCO provides users with a ready-to-use library object (EMSSTUB) or the source that can be compiled into an object. The supplied library object can then be statically included in your application program during the IBM bind phase.
The EMSDLL executable will always be loaded dynamically at run-time, and the advantage of using the static EMSSTUB module is that your programs do not need to be compiled using the DLL option.
TIBCO provides a COBOL source program consisting of a consumer (SXJCMC) and producer (SXJCMP), which can be compiled using the DLL or the EMSSTUB static module. The sample of the source program can be found in JCL(SXJCNCB).
MOVE 'PROGRAM' to WS-PROGRAM-NAME. CALL WS-PROGRAM-NAME ........The library containing the executable DLLEMS module, must still be concatenated to the STEPLIB DDName.
