Rational Programming Patterns

Level, Address and Length

The Level, Address and Length tab gives you information about the Data Elements called in the Segment or a Table, such as their COBOL descriptions. You also find statistics on the current Segment.

The Level, Address and Length tab is the equivalent of -LAL and -STA in Pacbase transactional programs. It consists of two tables whose data items are tightly linked to the information you enter in the -CE Lines tab of the Segment or Table editor.

Statistics

The fields of the Statistics section are automatically completed. If you add or remove an element in the -CE Lines tab, statistics are updated simultaneously.

If you add a Data Element call to the Segment, or remove one of them, you can see the Number of Data Elements field being updated. It is the same for a Segment; the Number of Segment calls field is updated. When you add a filler, group, elementary Data Element call, the Number of elementary fields field is modified. You can cancel this action with the Undo choice of the pop-up menu. As a result, the fields in the Statistics section are reset to their initial values and the call line is removed from or reinserted in the -CE lines of the Segment. A Redo action is still possible.

If you have updated the -CE lines of the Segment, and have not saved these changes yet, you can still revert to the last saved updates. To do so, select Revert in the statistics pop-up menu.

Figure 1. Level, position and length tab, section statistics
Statistics on the current Segment in the Level, Address and Length tab
Segment
Name and label of the Segment.
Number of Data Elements
Number of Data Elements called in the Segment, in the -CE Lines tab.
Number of Elementary fields
Total number of elementary Data Elements and fillers called in the Segment, in the -CE Lines tab.
Input length
Total of the input lengths of the elementary fields. This total is calculated with the input format indicated in the Data Element editor, in the Definition tab.
Internal length
Total of the internal lengths of the elementary fields. This total is calculated with the internal format indicated in the Data Element editor, in the Definition tab.
Output length
Total of the output lengths of the elementary fields. This total is calculated with the output format indicated in the Data Element editor, in the Definition tab.

Level, Address and Length

Next to the Statistics section, a table shows information indicated in the Definition of Data Elements (usage, internal format, output format) with the length and address of the called Data Element. If a Data Element is redefined, the length of the redefined Data Element is taken into account. If the called element is not a Data Element, the numbers displayed in the Internal format and Input format columns are always identical. The Occurs values are those entered on the definition of the element called in the Segment -CE Lines tab.

Figure 2. Level, Address and Length table on the current Segment
Level, Address and Length table relating to the current Segment
Possible actions in this table from the following choices in the pop-up menu:
  • Undo: You cancel the last update you made in the -CE Lines tab. As a result, the line corresponding to the element called in the Segment is updated in the 'LAL' table.
  • Redo: You cancel the last undo action.
  • Revert: You cancel all the last unsaved updates you made in the -CE Lines tab. As a result, the lines corresponding to the elements called in the Segment are updated in the 'LAL' table and you revert to the last saved changes.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)