EMS Stub Module
For sites that do not support DLL options, you can use an EMS Stub instead of DLL option for COBOL applications.
The Stub source is located in:
Dataset: USERHLQ.C
Member: EMSSTUB
To use EMS with COBOL programs which prefer a statically linked EMS object (for example: compiled without the DLL option), TIBCO EMS Client for z/OS (MVS) provides a stub module which can dynamically resolves functions provided by DLLEMS. TIBCO provides users with the source which must be complied into an object. Once the object is created and included in a user program, it dynamically resolves all the API calls in DLLEMS. To use it, you "STATICALLY" bind EMSSTUB with you program objects. This allows your COBOL program to function without being recompiled. The EMSSTUB will dynamically load the "DLLEMS" DLL and call the appropriate API functions as the COBOL program indicates.
You can create a NON-DLL COBOL module by using EMSSTUB. This module can be called by other NON-DLL COBOL modules using a COBOL dynamic call.
For example:
MOVE 'PROGRAM' to WS-PROGRAM-NAME. CALL WS-PROGRAM-NAME ........
The DLLEMS module must still be in the STEPLIB library.
