Sample procedural programs (platforms except z/OS )
These sample programs are delivered with the product. The samples are written in C and COBOL, and 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 is omitted.
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.
For RPG programming, see IBM® i Application Programming Reference (ILE/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 |
The eighth character of the executable indicates whether the sample runs in local binding mode or client mode. If there is no eighth character, then the sample runs in local bindings mode. If the eighth character is 'c' then the sample runs in client mode. To set up the queue manager to accept client connections, see Preparing and running the sample programs for details.
- Features demonstrated in the sample programs
- The Publish/Subscribe 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 Inquire Properties of a Message Handle sample program
- The Set sample programs
- The Echo sample programs
- The Data-Conversion sample program
- The Triggering sample programs
- The Asynchronous Put sample program
- Database coordination samples
- The CICS transaction sample
- TUXEDO samples
- Dead-letter queue handler sample
- The Connect sample program
- The API exit sample program
- Using the SSPI security exit on Windows systems
- Running the samples using remote queues
- The Cluster Queue Monitoring sample program (AMQSCLM)
- Sample program for Connection Endpoint Lookup (CEPL)