Problem:
Customer has an IBM AIX machine with MQ Series.
Request for help, linking MQ Series for AIX with Server Express.
Resolution:
Kb article 17817 talks about creating stand-alone programs and shared objects which include the MQ libraries. With a little adaptation it is possible to build an RTS that includes MQ support. The way to do this is as follows:
1. Create an 'export' file to make the MQ series entry point visible. This should include all of the MQ entry points used by your application.
Example:
echo "MQCONN" >mq.exp
echo "MQOPEN" >> mq.exp
echo "MQCLOSE" >> mq.exp
echo "MQGET" >> mq.exp
echo "MQCMIT" >> mq.exp
echo "MQPUT" >> mq.exp
echo "MQDISC" >> mq.exp
2. Create the run-time using the following cob command:
cob -xto newrts -e"" -Q -bE:mq.exp -lmqmcb_r
This creates an executable called newrts.
3. Application programs can be run by using newrts as follows:
newrts myprog.int



