Work in your normal environment; WebSphere MQ for Windows requires nothing special.
Library file | Program/exit type |
---|---|
MQM.LIB | server for 32-bit C |
MQIC32.LIB | client for 32-bit C |
The following command gives an example of compiling the sample program amqsget0 (using the Microsoft Visual C++(R) compiler):
cl amqsget0.c /link mqm.lib
Notes:
Also, link against the Encina and DCE libraries:
Library file | Protocol |
---|---|
MQICN.LIB | NetBIOS required |
MQICDN.LIB | NetBIOS not required |
MQICT.LIB | TCP/IP required |
MQICDT.LIB | TCP/IP not required |
Sample C source for a CICS WebSphere MQ transaction is provided by AMQSCIC0.CCS. You build it using the standard CICS facilities:
For CICS for Windows NT V2:
UserWork = 'c:\mqm\dll' UserIncl = 'c:\mqm\tools\c\include;c:\mqm\tools\c\samples'
If necessary replace c:\mqm with the path on which you installed the sample code.
<drive>:\MQM\TOOLS\LIB
<drive>:\MQM\TOOLS\C\INCLUDE <drive>:\CNT200\INCLUDE
CICSCTCL AMQSCIC0
This is described in the CICS for Windows NT V2.0 Application Programming Guide.
For TXSeries for Windows NT, V4:
set CICS_IBMC_FLAGS=-IC:\Program Files\IBM\WebSphere MQ\Tools\C\Include; %CICS_IBMC_FLAGS%
set USERLIB=MQM.LIB;%USERLIB%
cicstcl -l IBMC amqscic0.ccs
This is described in the Transaction Server for Windows NT Application Programming Guide (CICS) V4.
You can find more information about supporting CICS transactions in WebSphere MQ System Administration Guide.