Sample programs (all platforms except z/OS)

 

This chapter describes the sample programs delivered with WebSphere MQ, written in C and COBOL. 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 might 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.

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

RPG sample programs: See the WebSphere MQ for iSeries Application Programming Reference for a description of the sample programs available in RPG.

The names of the samples start with the prefix amq. 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

This chapter introduces the sample programs, under these headings:

 

Parent topic:

Sample WebSphere MQ programs


fg16990_