Preparing COBOL programs

This section explains the compiler and libraries you need to prepare your COBOL programs.

COBOL compiler flags

You must compile the programs in ANSI mode using the /ANSI switch to the DEC COBOL compiler. The following is an example of how to build the sample program AMQ0PUT0:

  $ COBOL/ANSI  AMQ0PUT0.COB
  $ LINK AMQ0PUT0.OBJ,SYS$INPUT/OPTIONS
  SYS$SHARE: MQMCB/SHAREABLE
  Ctrl + Z

Linking libraries

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

Library file Program/exit type
MQMCB.EXE COBOL
MQICB.EXE COBOL WebSphere MQ client



© IBM Corporation 1993, 2002. All Rights Reserved