Navigating arrays and redefine data items
The Test Case Editor collapses arrays and redefine data items so that they are easier to navigate. The editor provides tools for expanding and navigating collapsed arrays and redefined data items.
About this task
01 LOGICALPARAMS.
03 I-ITEM01 PIC X(20).
03 R-ITEM01 REDEFINES I-ITEM01 PIC 9(20) .
03 I-ITEM02 PIC X(20).
03 R-ITEM02 REDEFINES I-ITEM02 OCCURS 20 PIC X(1) .
03 I-ITEM03 OCCURS 25 PIC X(2).A data item and its
redefine items are treated as a group: only one data item is used for the test program, and other
data items are ignored. In the Test Case Editor, the redefine item in the
sample code block is displayed as shown in this example:
Restriction: A test case can have only one redefine structure selected across
all test entries in the test case. If you want to test with a different redefine item, you must
create a new test case.
An array consists of one base item name and its array indices.
Arrays can be large, so Test Case Editor shows only one element in an array and
shows placeholders for the other elements. In Test Case Editor, the arrays that
are defined in the sample code block are displayed as shown in this example:





