Preparing COBOL programs

Compile the programs using the Micro Focus compiler. The copy files which declare the structures are in /opt/mqm/inc:

  $ export LIB=/usr/mqm/lib;$LIB
  $ export COBCPY="/opt/mqm/inc"
  $ cob -vxP <amqsput>.cbl -lmqmcb

where amqsput is a sample program.

You must ensure that you have specified adequate run-time stack sizes; 16 KB is the recommended minimum.

You need to link your program with one of the following:

Library file Program/exit type
libmqmcb.sl Server for COBOL
libmqicb.sl Client for COBOL
amqmcb_r.sl Threaded applications

Programs to run in the WebSphere MQ client environment

If you are using LU 6.2 to connect your MQI client to a server, you must link your application to libsna.a, part of the SNAplusAPI product. Use the -lV3 and -lstr options on your compile and link command.

If you are not using LU 6.2, consider linking to libsnastubs.a (in /opt/mqm/lib) to fully resolve function names. The need to link to this library varies with how you are using the -B flag during the linking stage.



© IBM Corporation 1993, 2002. All Rights Reserved