Option 03: Prevent a Program from Updating a File

This section of the demo session details how to execute a program without having it update a file.

The No File Updating option is useful when you are testing a program. Preventing a program from updating a file means your test data remains unchanged at the end of each program execution, so you can test the program repeatedly without having to recreate test data.

Many programs can use the same test file without interfering with each other's work. You can even allow a test program to use a production file because the integrity of the file is preserved.

Important! Before proceeding, be sure you have completed the steps outlined earlier in this chapter in Demo Preliminaries and that CA InterTest for CICS Demo Session Options Menu is displayed on your screen. Also be sure that the CA InterTest for CICS checkpoint file (PROTCPF) has been defined to your CICS region and that the file's current status is Open and Enabled.

  1. Select option 03, and press Enter.

    The demo program displays the following screen that describes what will occur in this part of the demo session.

    ********************************************************************** **** **** **** CA InterTest Demo Session **** **** No File Updating Option **** **** **** ********************************************************************** The program reads a record and changes data in the record. Here is what will happen: 1. CA InterTest halts the program at a request breakpoint. 2. You set the No File Updating option to prevent PLIDEMO from updating the file. 3. When PLIDEMO rewrites the file, the file is not updated. 4. After the rewrite you use the FILE facility to confirm that the file has not been updated. When this section of the demo completes, you will return to the Options Menu. Press ENTER to continue or CLEAR to terminate.

  2. Press Enter.

    CA InterTest for CICS displays a request breakpoint (note the R in column 1) shown in the following section's screen.


Copyright © 2009 CA. All rights reserved. Email CA about this topic