Preparing and running the Credit Check sample

To prepare and run the Credit Check sample, perform the following steps:
  1. Create the VSAM data set that holds information about some example accounts. Do this by editing and running the JCL supplied in data set CSQ4FILE.
  2. Perform the steps in Preparing the sample applications for the CICS environment. (The additional steps that you must perform if you want to use the IMS extension to the sample are described in The IMS extension to the Credit Check sample.)
  3. Start the CKTI trigger monitor (supplied with IBM® MQ for z/OS® ) against queue CSQ4SAMP.INITIATION.QUEUE, using the CICS transaction CKQC.
  4. To start the application, start your CICS system and use the transaction MVB1.
  5. Select Immediate or Batch inquiry from the first panel.
    The immediate and batch inquiry panels are similar; Figure 1 shows the Immediate Inquiry panel.
    Figure 1. Immediate Inquiry panel for the Credit Check sample application
    
    CSQ4VB2       IBM MQ for z/OS Sample Programs
    
    Credit Check - Immediate Inquiry
    
    Specify details of the request, then press Enter.
    Name . . . . . . . . . ____________________
    Social security number ___ __ ____
    Bank account name . . ______________________________
    Account number . . . . __________
    Amount requested . . . 012345
    Response from CHECKING ACCOUNT for name : ____________________
    Account information not found
    Credit worthiness index - NOT KNOWN
    ..
    ..
    ..
    ..
    ..
    ..
    ..
    ..
    ..
    MESSAGE LINE
    F1=Help F3=Exit F5=Make another inquiry
    
    
  6. Enter an account number and loan amount in the appropriate fields. See Entering information in the inquiry panels for guidance on what information to enter in these fields.

Entering information in the inquiry panels

The Credit Check sample application checks that the data you enter in the Amount requested field of the inquiry panels is in the form of integers.

If you enter one of the following account numbers, the application finds the appropriate account name, average account balance, and credit worthiness index in the VSAM data set CSQ4BAQ:
  • 2222222222
  • 3111234329
  • 3256478962
  • 3333333333
  • 3501676212
  • 3696879656
  • 4444444444
  • 5555555555
  • 6666666666
  • 7777777777

You can enter any, or no, information in the other fields. The application retains any information that you enter and returns the same information in the reports that it generates.