Adding a Procedure to an Existing Program

Start the Program Editor and go to MYPROG1’s procedure tree
In the Procedure Tree:
[We need to work out exactly how new procedures will be inserted into the program tree]
The new procedure, called CLICK, allows the user as much time as required to look at the current screen by displaying the message: Click on OK or press Return to continue ... and waiting until the user either clicks on the OK button or presses the <Enter> key.

Add CLICK below SCREEN_HEADER in the procedure tree, as follows:

  1. Press <¯> followed by <Insert>. In the Procedure Link Editing window that pops up, type CLICK for the name of the procedure. Press <Enter> to create and accept the procedure name.
  2. Add a description for the procedure, such as:
    Waits for user to click on OK button

4. Consider the requirements of the procedure:

Option

Choice

Explanation

Procedure Type

Menu/Switch

It prompts the user for a decision (even though there is little element of choice in this procedure) to control the program

Database procedure ?

No

It does not access the database

Repeated Procedure ?

N

It is not a repeated procedure

As before, we omit Table Processing. If you specify that the procedure does not access the database, QA Build will not allow selection of Table Processing, because it is not relevant.