Call of a Logical View in a Business Component

In the -CS Lines tab of the Server and Server Dialog editors, you must specify, for each Business Component, the called Logical View and its call characteristics.

For each Logical View, the S organization is automatically selected.

At least one Logical View must be present in an S-type Business Component. You can declare several Logical Views, although it is not advised. In this case, the total number of description lines associated with these Logical Views is limited to 100.

The fields are explained according to the order of their display in the CS Line - Logical View call definition section.

Logical View
Specify the name of the Logical View in the repository. To do so, click Change. A selection wizard opens with the Logical Views that can be selected. Select or create a Logical View and click OK. In the table, it is displayed in the Seg / LV column.

You can also specify the Logical View directly from the Seg / LV column.

Two methods are possible:
  • Place the cursor in the column and enter the name directly. To make the input easier, you can open a content assist wizard by clicking Ctrl and the space bar simultaneously. If you start entering a name, the content assist displays the instances that start with this input. If you enter the name of an instance that does not exist and if you validate, the input is discarded.
  • Click the button that appears when you set your cursor in the column. In the selection wizard that opens, select an instance.

The Logical View name must be identical to the name of the corresponding Logical View in the associated TUI Client.

Segment code
This code is required. It corresponds to the Segment or Logical View name in the COBOL code of the Business Component. It can be different from the name that is stored in the repository. Its value is displayed in the Name column of the table.
Line number
This field is numeric. Only one 00 line number (default) is authorized in a Segment. This 00 line is required to enter the physical characteristics of the Segment (external name, organization), the name of the Segment access key, and the Segment code in the repository.

Physical characteristics

For a Logical View, the organization field is automatically set to S.

Description type
The Description type field contains values that generate, from the Segment description in the repository, different descriptions in the generated COBOL code. The following values can be selected:
  • Conventional (fixed) (default value) for a Segment that might have a specific part. For example, it can be a Data Structure with a Segment.
  • 1: Database Segments for a Segment without any common part. For example, it can be, for a database, various Segments that are defined in the same Data Structure.
  • E: Table type for Table-type Segments. The input format of the Data Elements that are called in the Segment is taken into account.
  • 2 : Conventional (variable) for a complete Segment with a variable length for an indexed organization (V). The generated description can vary according to the generation variant.
External Name
By default, this field displays the Data Structure.

Feedback