Rational Programming Patterns

-GG Lines in a Database Block

The physical information necessary to generate the Database Block is entered on the -GG Lines subtab associated with the Block in the -G Lines tab of the Block or associated with the definition of the description lines of a Block in the -Dx Lines tab (-DR, -DH, -DC lines) in the Database Block editor. It complements the logical information entered on the Database Block Definition.

Error
This column displays a dot on all the existing description lines which are not empty.

Moreover, if this line is not correct, this column also displays an error or warning symbol, depending on the severity of the error. A hover help indicates the source of the error.

In the -GG lines, you can modify the information contained in the Block Description lines before they are generated. Depending on the type of description line, lines are automatically displayed, in order to guide you when you enter the physical information of the Block. These lines are identified by "VIRT" or "GUID" in the last field of the table of the -GG lines. Collectively, these lines are called virtual lines. The lines identified by "VIRT" are generated. To modify these lines, you must override them and create new lines between beginning and end insertion lines. When you select a virtual line and click Override, the "VIRT" or "GUID" line is changed into a "FromVIRT" or "FromGUID" line, then it can be modified. You can also edit the "FromGUID" and "FromVIRT" lines by selecting them and pressing the F2 key. You can create lines anywhere in the table. However, if you want them to be taken into account at generation time, you must identify them with a G type.

Type
When you click this field, you can select a line type among:
Table 1. Type of line
Value  
G You use a G line to:
  • Indicate the physical characteristics of a Block on the Block Definition.
  • Add generation data on the Block Description.
The line is generated instead of the automatically generated elements.
* Line which will not be generated. It is used to insert a comment or an override.
P Line taken into account upon generation. The line is generated between the element automatically generated parts and its description.
Z Line taken into account upon generation. The line is generated after the automatically generated elements.
V Line taken into account upon generation. The line is generated before the automatically generated elements.
The P, Z, and V types are associated with the SOCRATE databases. P and Z types are also available for -GG lines associated with CODASYL Block definition and -DC Lines.
Description
This field must be used to enter the generation elements or comments you want to be generated. Its content depends on the type of Block and type of line selected. The first part of the description can contain 60 characters, the second part 40.

The lines entered in this section are taken into account when the instance is generated.

Lines associated with DL/1 Database Blocks

Lines associated with CODASYL databases


Terms of use | Feedback

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