Previous Topic: Demo Session ObjectivesNext Topic: Select the Source Program from the ITST Menus


Demo Session Scenario

The CA InterTest basic demo session takes you through the following scenario:

  1. You use the ITST menus to select and view the source listing of the sample program to be executed. A sample IBM Enterprise COBOL program named COBDEMO is provided for you to use.
  2. You set monitoring for the sample program and view the status display of your monitoring request.
  3. You exit ITST menus and initiate COBDEMO by specifying the DEMC transaction.
  4. CA InterTest for CICS intercepts and prevents an ASRA abend in COBDEMO. CA InterTest halts COBDEMO at an ADD statement and displays a diagnostic message informing you that the problem was caused by improperly formatted data.
  5. You examine the current value of TASKNUM, the receiving field in the ADD statement which you suspect may be the cause of the problem. You find that TASKNUM does not contain a valid packed decimal number.
  6. You move a packed decimal zero into TASKNUM to correct the error.
  7. You set a breakpoint to halt COBDEMO at another statement. This step is purely instructional—it has nothing to do with correcting the ASRA.
  8. You resume program execution. CA InterTest halts the program at the breakpoint you set in Step 7. You can see that when the ADD statement executed, the value of TASKNUM changed.
  9. You clean up by removing the breakpoint you set. You then resume program execution and COBDEMO runs to completion.

DB2 Demo Program

DB2DEMO is a sample program that helps you to set up and verify your DB2 support for CA InterTest for CICS and CA SymDump for CICS. The demo program is written in COBOL and uses basic read-only SQL statements. The table used for queries is SYSIBM.SYSTABLES, thus, no particular database for this demo is needed. The DB2DEMO program and DEMD transaction can be used in place of the COBDEMO program and DEMC transaction as described in the Demo Session Scenario section.

Usage

Follow these steps:

  1. Make sure that you have successfully completed all of the steps described in Install DB2 Support section in CA InterTest for CICS Installation Guide or CA SymDump for CICS Installation Guide in order to support DB2. Make sure DB2DEMO was properly installed.
  2. Set up monitoring:
  3. Run the DB2DEMO program by invoking the DEMD transaction.

    The welcome screen is displayed.

  4. Do one of the following:
  5. Following are possible errors after pressing Enter on the welcome screen:
  6. See output of SELECT SQL statement from SYSIBM.SYSTABLES table.
  7. Abend the program:
  8. In case DB2DEMO is monitored for CA InterTest for CICS and you see a breakpoint appears at ADD 1 TO TASKNUM' statement, you can correct the abending statement.