Skip to main content

Problem:

How can I setup MFE with IBM's MQSeries?

Resolution:

IBM supplies some things to check the Server/Client setup.

Here is what I find:

In the MQSeries\\bin folder there are two executables:

  - Amqsputc: test program to put a message on a queue

  - Amqsgetc: test program to receive a message from a queue

Syntax is amqsputc, press enter, enter a message one per line,

null line gets you out.

For amqsgetc, syntax is amqsgetc

  Messages on the queue will be displayed and then

  amqsgetc will terminate about 30 seconds later.

  This will test that the MQSERVER environment variable is set up correctly.

  The syntax there is:  SET MQSERVER=/TCP/ip or dnsname(port)

  For example, we have:

   SET MQSERVER=CSIMVS.CGLAB1.TCP/TCP/csmvs.microfocus(0811)

  Also, in the MQServer console one can select 'all tasks' and ping

  the client machine. If that fails, then the MQ connection is not setup.

All you need is the MQ Client (or the WebSphere equivalent) and the

settings in MFE. The CALLs are documented for MQCONN,  MQOPEN, MQGET,

MQPUT, MQCMIT, MQCLOSE and MQDISC under online Help> Contents tab>

Using Mainframe Express>IDE Technical Guide> MQSeries Support and

in the sample programs we provide:

  MFMQSGET.Cbl and MFMQSPUT.Cbl (in the MFE\\MFIDE\\SOURCE directory)

For CICS, you have to make the required SIT entries under the SIT>

Properties,Communications tab.

For batch, see MFMQSBAT.JCL in the MFE\\MFIDE\\SOURCE directory.

For IMS, see MQSTRIG.TXT in the MFE\\MFIMS\\SOURCE directory.

Old KB# 4150

#MFDS
#EnterpriseDeveloper