Adding and inserting data records

Use the Add Record or Insert Record action to add a record to a procedure unit.

About this task

Add Record appends a new record to the end of a procedure unit. Insert Record adds a new record before or after the current record. The PROCEDURE DIVISION, or the main Procedure, can have only one data record. You cannot add a record to the main procedure. If a record has no data, it is deleted when you close the Test Case Editor.

Adding a record

Procedure

Select a record or a procedure unit, and then click Add Record Add Record or right-click and click Add Record.
Adding a record to a procedure unit
A new record is added after the last record in the procedure unit.
A record added to a procedure unit

Inserting a record

Procedure

  • To insert a data record in a procedure unit, select a record and then click Insert Record Insert Record or right-click and click Insert Record.
    Inserting a record in a procedure unit
    The Insert Record window opens.
    Insert Record window
  • Click Before or After and then click OK.
    When you select Before, the new record is added before the selected record and subsequent records are renumbered. In this example, Record2 is renamed Record3, and the inserted record is Record2.
    A new recorded inserted before the current record
    When you select After, the new record is added after the selected record. In this example the inserted record is Record3.
    A new record inserted after the current record