Prepare CICS COBOL programs using Micro Focus COBOL

 

To use Micro Focus COBOL, follow these steps:

  1. Add the WebSphere MQ COBOL run-time library module to the run-time library using the following command:
      cicsmkcobol -L/usr/lib/dce -L/opt/mqm/lib  \
                  /opt/mqm/lib/libmqmcbrt.o -lmqz_r

    With cicsmkcobol, WebSphere MQ does not allow you to make MQI calls in the C programming language from your COBOL application.

    If your existing applications have any such calls, you are strongly recommended to move these functions from the COBOL applications to your own library, for example, myMQ.so. After you have done this, do not include the WebSphere MQ library libmqmcbrt.o when building the COBOL application for CICS.

    Additionally, if your COBOL application does not make any COBOL MQI call , do not link libmqmz_r with cicsmkcobol.

    This creates the Micro Focus COBOL language method file and enables the CICS run-time COBOL library to call WebSphere MQ on UNIX systems.

    Run cicsmkcobol only when you install one of the following:

    • New version or release of Micro Focus COBOL

    • New version or release of CICS for HP-UX

    • New version or release of any supported database product (for COBOL transactions only)

    • New version or release of WebSphere MQ

  2. Export the following environment variable:
      COBCPY=/usr/mqm/inc  export COBCPY
    

  3. Translate, compile, and link the program by typing:
      cicstcl -l COBOL -e <yourprog>.ccp

 

Parent topic:

TXSeries CICS support


fg16370_