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:
- Features demonstrated in the sample programs
- Preparing and running the sample programs
- The Put sample programs
- The Distribution List sample program
- The Browse sample programs
- The Browser sample program
- The Get sample programs
- The Reference Message sample programs
- The Request sample programs
- The Inquire sample programs
- The Set sample programs
- The Echo sample programs
- The Data-Conversion sample program
- The Triggering sample programs
- Running the samples using remote queues
- Database coordination samples
- The CICS transaction sample
- TUXEDO samples
- Encina sample program
- Dead-letter queue handler sample
- The Connect sample program
- The API exit sample program
- Using the SSPI security exit on Windows systems
- Features demonstrated in the sample programs
- Preparing and running the sample programs
- The Put sample programs
- The Distribution List sample program
- The Browse sample programs
- The Browser sample program
- The Get sample programs
- The Reference Message sample programs
- The Request sample programs
- The Inquire sample programs
- The Set sample programs
- The Echo sample programs
- The Data-Conversion sample program
- The Triggering sample programs
- Running the samples using remote queues
- Database coordination samples
- The CICS transaction sample
- TUXEDO samples
- Encina sample program
- Dead-letter queue handler sample
- The Connect sample program
- The API exit sample program
- Using the SSPI security exit on Windows systems
Parent topic:
Sample WebSphere MQ programs
fg16990_