Preparing CICS programs

XA switch modules are provided to enable you to link CICS(R) with WebSphere MQ:

Table 14. Essential code for CICS applications (AIX(R))
Description
C (source)
C (exec) - add to your
XAD.Stanza
XA initialization routine
amqzscix.c
amqzsc - CICS for AIX

Build the Switch load file as follows:

export MQM_HOME=/usr/mqm

echo "amqzscix" > tmp.exp
xlc_r4 $MQM_HOME/samp/amqzscix.c -I/usr/lpp/encina/include \
  -e amqzscix -bE:tmp.exp -bM:SRE -o amqzscix /usr/lpp/cics/lib/regxa_swxa.o \
  -L$MQM_HOME/lib -L/usr/lpp/cics/lib -L/usr/lpp/encina/lib \
  -lcicsrt -lEncina -lEncServer -lpthreads -lc_r \
  -lmqmcics_r -lmqmxa_r -lmqz_r -lmqmcs_r -lmqmzse
rm tmp.exp

Always link your C transactions with the threadsafe WebSphere MQ library libmqm_r.a., and your COBOL transactions with the COBOL library libmqmcb_r.a.

You can find more information about supporting CICS transactions in the WebSphere MQ System Administration Guide.