C ECI and EPI user exit samples
These samples redirect requests to a server other than that specified by the Client application.
- ecix2.c
- epix2.c
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.
- Set the NUM_SERVERS constant to the number of elements in your arrays (set to 4 in the sample programs)
- Change the elements of the requestFrom and requestTo arrays. The number of elements must be the same in each array.
- 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.