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.
The program searches VSAM data set CSQ4BAQ for the account number in the loan request message. It retrieves the corresponding account name, average balance, and credit worthiness index, or notes that the account number is not in the data set.
The program then puts a reply message (using the MQPUT1 call) on the reply-to queue named in the loan request message. For this reply message, the program:- Copies the CorrelId of the loan request message
- Uses the MQPMO_PASS_IDENTITY_CONTEXT option
The program continues to get messages from the queue until the wait interval expires.
Parent topic: Design of the Credit Check sample on z/OS