Calculating the Field Size

This feature enables you to calculate the size of a COBOL variable (or a group of COBOL variables) that is defined as per the COBOL coding standards. It works for the COBOL editor and the Unisys Common Editor (text editor).

The element containing the variable structure can be opened from one of the following:

To calculate the field size of a variable or a group of variables, do the following:

  1. Select a variable or a group of variables by using one of the following methods:

Note: If no selection is made, the current line is considered for selection.

Notes:

  1. Click OS 2200 > Field Size. Alternatively, you can click on the tool bar.

The Field Size dialog box appears displaying multiple fields as has been described in the following table.

                                         Descriptions for Fields in the Field Size Dialog Box

   Field Name

    Field Type

    Description

Containing Text

Text box

Editable and adjustable text box. Contains the selected variables.

Offset Display Type

Drop-down list

Contains the following three different Offset Display types:

  • Decimal Bits

  • Decimal Characters

  • Octal Words

Note: By default, the Decimal Characters type is selected, irrespective of the last selection made when the dialog box was opened.

Selection

Tabular Column

Non-editable tabular column consisting of the formatted selection. Each line in this field represents the definition of a single variable.

Offset Value

Tabular Column

Non-editable tabular column consisting of the offset and the size of each variable that is included in the selection.

Refresh

Button

When the editable text box is modified, press Refresh to process the change. However, this action is not required when selecting a different Offset Display Type for the current selection. If the current selection is modified and you do not refresh but change the Offset Display Type, then the older selection in memory is considered for processing the field size.

Notes: