Preparing C programs

Work in your normal environment; WebSphere MQ for Windows requires nothing special.

Preparing CICS and Transaction Server programs

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:

  1. Add the following lines to the CICSENV.CMD file:
      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.

  2. Edit the CICSCCL.CMD file (found in <drive>:\CNT200\UTIL) and add the library mqm.lib to the set of libraries.
  3. To the LIB environment variable add:
      <drive>:\MQM\TOOLS\LIB
    
  4. To the INCLUDE environment variable add:
      <drive>:\MQM\TOOLS\C\INCLUDE
      <drive>:\CNT200\INCLUDE
    
  5. Compile using the command:
      CICSCTCL AMQSCIC0
    

    This is described in the CICS for Windows NT V2.0 Application Programming Guide.

For TXSeries for Windows NT, V4:

  1. Set the environment variable (enter the following on one line):
      set CICS_IBMC_FLAGS=-IC:\Program Files\IBM\WebSphere MQ\Tools\C\Include;
      %CICS_IBMC_FLAGS%
    
  2. Set the USERLIB environment variable:
      set USERLIB=MQM.LIB;%USERLIB%
    
  3. Translate, compile, and link the sample program:
      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.



© IBM Corporation 1993, 2002. All Rights Reserved