Figure 1 shows the programs that make up the application, and also the
queues that these programs serve. In this figure, the prefix CSQ4SAMP has been omitted from all the
queue names to make the figure easier to understand.Figure 1. Programs and queues for the Credit Check sample application (COBOL programs only). In the sample application, the queue names shown in this figure have the prefix CSQ4SAMP.
Check-account program (CSQ4CVB3) on z/OS
The checking-account program is started by a trigger event on queue CSQ4SAMP.B3.MESSAGES. After it has opened the queue, this program gets a message from the queue using the MQGET call with the wait option, and with the wait interval set to 30 seconds.
Agency-query program (CSQ4CVB5/CSQ4CCB5) on z/OS
The agency-query program is supplied as both a COBOL program and a C program. Both programs have the same design. This shows that programs of different types can easily coexist within an IBM MQ application, and that the program modules that make up such an application can easily be replaced.