This section explains the compiler and libraries you need to prepare your COBOL programs.
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
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 |