Compiling channel exit programs on HPE NonStop systems

You can compile channel exit programs for IBM® MQ on your HPE NonStop system.

In the following examples, exit is the channel library name and ChannelExit is the function name. These names are used by the channel definition to reference the exit program using the format described in MQCD- channel definition.

Sample compiler and linker command for channel exits on HPE NonStop I (ia64)

$ c89 -Wshared -Wsystype=oss -Wlp64 -Wextensions -D_PUT_MODEL_ -I$MQINST/opt/mqm/inc 
  -Weld="-export_all -set data_model lp64" -L$MQINST/opt/mqm/lib64 -lmqds64_r -lput 
  -o $MQINST/var/mqm/exits64/exit_r exit.c

Sample compiler and linker command for channel exits on HPE NonStop X (x86)

$ c89 -Wshared -Wsystype=oss -Wlp64 -Wextensions -D_PUT_MODEL_ -I$MQINST/opt/mqm/inc 
  -Wxld="-export_all -set data_model lp64" -L$MQINST/opt/mqm/lib64 -lmqds64_r -lput 
  -o $MQINST/var/mqm/exits64/exit_r exit.c