Use this sample code to call a queue manager, server queue, channel, and listener.
Create a default queue manager called queue.manager.1 and start it: crtmqm -q queue.manager.1 strmqm dspmq # display list of active queues Now create a local queue, a channel and a listener: runmqsc define qlocal(QUEUE1) 5 define channel (channel1) chltype (svrconn) trptype (tcp) \ mcauser ('mqm') define listener (listener1) trptype (tcp) control (qmgr) \ port (2001) start listener (listener1) end