Preparing C programs

For DOS and Windows 3.1 only

Applications must be built using the large memory model.

Work in your normal environment; MQSeries for OS/2 Warp requires nothing special.

Preparing CICS and Transaction Server programs

Sample C source for a CICS MQSeries for OS/2 Warp transaction is provided by AMQSCIC0.CCS. You build it using the standard CICS facilities.

For CICS for OS/2 Version 2:

  1. Add the following lines to the CICSENV.CMD file:
    UserWrk = 'c:\mqm\dll'
    UserInclude = '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. Compile using the command:
    CICS32TC AMQSCIC0.CCS LIBS(MQM)
    

This is described in the CICS for OS/2 V2.0.1 Application Programming Guide.

For CICS Transaction Server for OS/2, Version 4:

  1. Add the following lines to the CICSENV.CMD file:
    UserWrk = 'c:\mqm\dll'
    UserInclude = '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. Compile using the command:
    CICSCTCL AMQSCIC0.CCS LIBS(MQM)
    

This is described in the Transaction Server for OS/2 Warp, V4 Application Programming Guide.

You can find more information about supporting CICS transactions in WebSphere MQ System Administration Guide.



© IBM Corporation 1993, 2002. All Rights Reserved