C ECI and EPI user exit samples

These samples redirect requests to a server other than that specified by the Client application.

If your server configuration changes, you can continue to use your existing applications, without changing the application code. The samples are:

You define server aliases through two arrays: redirectFrom and redirectTo. Any request to a server that appears in redirectFrom is redirected to the server defined in the corresponding entry in the redirectTo array. For example, the sample programs redirect any requests sent to a server named SERVER2 to a server named SERVERAA. Requests sent to SERVER4 are sent to SERVERBB.

To change the names of the servers in the sample program to match your configuration:
  1. Set the NUM_SERVERS constant to the number of elements in your arrays (set to 4 in the sample programs)
  2. Change the elements of the requestFrom and requestTo arrays. The number of elements must be the same in each array.
  3. Recompile the sample program.

When you have built a user exit application, put it in <install_path>/bin. In addition to the standard ECI or EPI header files, the sample programs require the cicsecix.h or cicsepix.h header files in <install_path>/include. For more information on how to install a user exit, see ECI and EPI C exits.


Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/ECIAndEPIUserExitSamples-Ecix2.html