Chapter 35. Sample programs (all platforms except z/OS)

This chapter describes the sample programs delivered with WebSphere MQ, written in C, COBOL, PL/I, and TAL. The samples demonstrate typical uses of the Message Queue Interface (MQI).

The samples are not intended to demonstrate general programming techniques, so some error checking that you may want to include in a production program has been omitted. However, these samples are suitable for use as a base for your own message queuing programs.

The source code for all the samples is provided with the product; this source includes comments that explain the message queuing techniques demonstrated in the programs.

DCE sample exit: For information on compiling and linking the DCE sample exit (amqsdsc0.c) see WebSphere MQ Intercommunication.

C++ sample programs: See WebSphere MQ Using C++ for a description of the sample programs available in C++.

RPG sample programs: See WebSphere MQ for iSeries V5.3 Application Programming Reference (ILE RPG) for a description of the sample programs available in RPG.

The names of the samples start with the prefix amq, except for TAL programs that start zmq. The fourth character indicates the programming language, and the compiler where necessary.

s C language
0 COBOL language on both IBM and Micro Focus compilers
i COBOL language on IBM compilers only
m COBOL language on Micro Focus compilers only
v COBOL language on DEC COBOL V2.3 and subsequent releases
p PL/I language

This chapter introduces the sample programs, under these headings:



© IBM Corporation 1993, 2002. All Rights Reserved