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.
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.
Value | |
---|---|
G | You use a G line to:
|
* | 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 lines entered in this section are taken into account when the instance is generated.
Several virtual documentation lines are associated with an IP- or IS-type Database Block. You must complete the generated virtual lines to provide the information required to determine the characteristics of a given index (such as access, password, data set).
The definition of a DR-type block is identical to that of a DP-type Block. All of the Data Elements called into a Segment used in a DP-type Database Block are generated as FIELD statements. You can reduce the DBD description to only the Data Elements used as access keys. With the DR-type Database Block, you can generate as FIELD statements only the Data Elements which are identified by an alphanumeric character in the Access Key field and labeled K on the Segment -CE Lines tab. The virtual lines are identical to the virtual lines of the DP-type Database Block.
The generated lines (Block Name and ACCESS=LOGICAL) are sufficient. Rewriting them is not necessary.
G RECORD < RECORD NAME > G RECORD SS00
G RECORD < RECORD NAME > . G FILE IS < FILE NAME > . G KEY-SEQUENCED . G ---> ELEMENT INSERTION BEGINNING <--- G<NUCLIE> G 10 NUCLIE PICTURE X(8). G ---> ELEMENT INSERTION END <--- G KEY IS < FIELD NAME > .
The Data Element code is indicated between the < and > symbols on a general documentation line of the affected entity:<datel >. This notation is taken into account in the Data Element use definition. In a data set or a 'remap' description, the Data Element marked this way does not interfere in the generation. It must not have any line type. For access, set and subset, Data Elements marked this way are taken into account for the generation and they must have a type.
Most often, data is described from column two. If the data description starts in column one, a semicolon line is inserted before the line generated for this data.