The IMS extension to the Credit Check sample

 

A version of the checking-account program is supplied as an IMS™ batch message processing (BMP) program. It is written in the C language.

The program performs the same function as the CICS version, except that to obtain the account information, the program reads an IMS database instead of a VSAM file. If you replace the CICS version of the checking-account program with the IMS version, you see no difference in the method of using the application.

To prepare and run the IMS version :

  1. Follow the steps in Preparing and running the Credit Check sample.

  2. Follow the steps in Preparing the sample application for the IMS environment.

  3. Alter the definition of the alias queue CSQ4SAMP.B2.OUTPUT.ALIAS to resolve to queue CSQ4SAMP.B3.IMS.MESSAGES (instead of CSQ4SAMP.B3.MESSAGES). To do this, we can use one of:

    • The WebSphere MQ for z/OS operations and control panels

    • The ALTER QALIAS command (described in the WebSphere MQ Script (MQSC) Command Reference)

Another way of using the IMS checking-account program is to make it serve one of the queues that receives messages from the distribution program. In the delivered form of the Credit Check sample application, there are three of these queues (B5/6/7.MESSAGES), all served by the agency-query program. This program searches a VSAM data set. To compare the use of the VSAM data set and the IMS database, you could make the IMS checking-account program serve one of these queues instead. To do this, alter the definition of the namelist CSQ4SAMP.B4.NAMELIST to replace one of the CSQ4SAMP.Bn.MESSAGES queues with the CSQ4SAMP.B3.IMS.MESSAGES queue. We can use one of:

We can then run the sample from CICS transaction MVB1 as usual. The user sees no difference in operation or response. The IMS BMP stops either after receiving a stop message or after being inactive for five minutes.

 

Parent topic:

The Credit Check sample


fg18710_