Segment call

To display the contents of this section, you must select a Segment call in the table or click Add Segment. You must indicate the code in program of the selected Segment. From this section, you can also access the Segment editor tabs.

Code in program
You can change the code of the selected Segment when this Segment is called in the program. To do so, overwrite the existing code. The Segment code in the program will then be shown on the Segment call, after the Segment code.
COBOL position
This field can contain 2 characters. It applies to the main description of a Data Structure (ddss) and not to the descriptions that are preceded by a prefix (1-ddss or 2-ddss).

This field is used to obtain a Data Structure description in a particular area (communication area with DBMS or LINKAGE SECTION) or at the beginning of the WORKING-STORAGE SECTION.

This field is reserved for Data Structures whose organization is W: File description in Working or L: Working with placement.

To obtain the description of a Data Structure in the WORKING-STORAGE SECTION, you are advised to indicate it in the work area lines of the COBOL code by inserting the WF micropattern. See Micropattern to call Data Structures in the work and linkage areas.

Table 1. Values of the COBOL position
Value Meaning
00 The description of the Data Structure is inserted after all the work areas.
Alphabetic characters The description of the Data Structure is inserted after all the work areas whose COBOL position corresponds to this value.

The description and work areas are found at the beginning of the WORKING-STORAGE SECTION of the generated program. These lines are displayed before the Data Structures whose organization is W: File description in Working and before the Data Structures whose code in the Program is greater than this alphabetic code.

Note: Do not select a COBOL position identical to the Data Structure code in the program for a Data Structure with a W: File description in Working organization.
Alphanumeric characters The description of the Data Structure is inserted after all the work areas whose COBOL position corresponds to this value.

The work area lines and the description can be found in the generated program, at the end of the WORKING-STORAGE SECTION among the user areas.

Note: With ORACLE, you must use numeric values so that the DECLARE SECTION is correctly generated (with data fields and indicators included in it).
Segment code
This field displays the name of the Segment in the repository. It is displayed in the Dl column of the table. You can change it by clicking Change. You can also change it directly in the Dl 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.

Feedback