IBM Support

WITHDRAWN: MA95: A REXX interface to WebSphere MQ

Downloadable files


This SupportPac provides a Rexx Interface to WebSphere MQ. It permits the usage of MQ function and MQSC commands within a Rexx Exec on both Windows and z/OS.

Download Description

Please note:

IBM will no longer be developing the MQ-REXX-API. A more recent version of the code is available under open source licence on github and can be found here.

This SupportPac has been moved to withdrawn and will be archived in March 2018.

This SupportPac enables you to use MQ API functions, and issue MQ script commands (MQSC), from Rexx Execs.

The SupportPac provides for the WebSphere MQ version 6 level of API but can be used with any supported level of queue manager.

This interface is different to that described in the Application Programming Reference book, as the API is customised for the Rexx environment. However, with a few exceptions, all the function described in the APR is available. Some extensions to the API are also provided to make it easier to use the interface.

The SupportPac is based on the MA18/MA19/MA77/MA78 SupportPacs written by Robert Harris and combines the functions into a single package.

The SupportPac allows most Rexx execs coded for the older SupportPacs MA18/MA19/MA77/MA78 to run unchanged.
Note: While we have attempted to provide compatibility there may be some cases where minor changes are needed.

Source code is provided to help you to extend the function of the SupportPac, and to port it to other environments.

Possible Uses
This SupportPac is designed for people who:
• Want to explore Message Queuing within the Rexx environment
• Want to place Message Queuing function within native Rexx execs
• Want to issue MQ script commands (MQSC) from Rexx execs
• Want to place Message Queuing function within the Rexx/ISPF environment on z/OS
• Need to prototype MQ Applications
• Want to develop portable applications
• Are interested in the design of Message Queuing Applications
• Want to continue to use Rexx execs that were originally written for the MA18/MA19/MA77/MA78 SupportPacs
• Want to modify the SupportPac to extend the function or to use it in other environments.

Skill Level Required
You should have a general awareness of Message Queuing function, and be familiar with Rexx coding to get the best out of this SupportPac.

New in this Release
• In TSO environment load library can now be specified via TSOLIB removing dependence on STEPLIB concatenation.
• GMO, PMO & other structures and constants updated to support WMQ V7
• Other minor problem fixes:
- CMDSCOPE(*) command parameter doesn't provide responses from all QSG MQ servers.
- When compiled REXX is used, it conflicts with LE.
- Context handle in RXMQPUT is not processed correctly.
- RXMQPUT1 losing connection handle.
- RXMQC doesn't always delete temporary reply-to queue.
- RXMQC shouldn't try to connect to QMGR when already connected.
- RXMQC negative response is not captured.
- Defined additional constants (MQMI_NONE and others).

Contacts: Mark Piggott, WebSphere MQ for z/OS Development, IBM Hursley
Category: 2
Released: 17Dec08
Last updated: 22Sep15
Current SupportPac Version: 1.0.2
»Please note that the version number shown in the right-hand pane is the version of the WebSphere MQ or WebSphere Message Broker product that this SupportPac applies to. The date is the last web page refresh.

To view the complete portfolio of WebSphere MQ SupportPacs please visit the WebSphere MQ SupportPacs homepage.


WebSphere MQ V6 or above,
A Rexx translator that supports the installation of function packs
C++ compiler (only if source modifications are needed)

ma95.pdf US English 329896

Download package

IBM will no longer be developing the MQ-REXX-API. A more recent version of the code is available under open source licence on github and can be found here.

Technical support

Category 2 SupportPacs are provided in good faith and AS-IS. There is no warranty or further service implied or committed and any supplied sample code is not supported via IBM product service channels.

You may submit a question and return email address using the 'Contact and feedback' button, but a response is not guaranteed.

Please read the license information contained within the zip file of this SupportPac to determine if you want to use it.

Document information

More support for: WebSphere MQ

Software version: 6.0, 7.0

Operating system(s): Windows, z/OS

Reference #: 4021549

Modified date: 17 March 2010

Translate this page: