|
Exit programs |
|
|
Some aspects of the configuration as well as some run-time behaviour of XCICS/TS may be influenced and/or driven by user exit programs. XCICS/TS supports the following type of exit programs:
Exit programs are normally coded by the user in C language routine, compiled and linked in a shared library and declared at configuration time. General coding rules The exit programs are normally coded in C language and their entry point must respect the function prototype described in program specific section. These rules should be observed
Example #include "cics_exit.h" Compiling & Linking UNIX/Linux The exit program sources must be compiled, producing a link-editable PIC object (.o). and then linked into a shared library. Both compiling and linking require a set of platform and installation dependant options, that must fit the XCICS building options. To facilitate the programmer's work, an include file for the make system is available at $XFRAMEHOME/include/xport.make. Including this file in the user Makefile the correct set of options and command is ready to be used. Example # Windows The exit program sources must be compiled, producing a link-editable object (.o). and then linked into a DLL. Both compiling and linking require a set of platform and installation dependant options, that must fit the XCICS building options. To facilitate the programmer's work, an include file for the nmake system is available at $XFRAMEHOME/include/xframe.make. Including this file in the user Makefile the correct set of options and command is ready to be used. If XCICS internal APIs are invoked in the user code, it is necessary to link the DLL with libcx.lib. Example # |