Rational Programming Patterns for System z

Creating -GG lines in a Database Block

You can create or modify generation elements related to the database or the description lines of a Block, depending on whether the -GG Lines subtab is one of the Block description line tab (-DR Lines, -DH Lines or -DC Lines, according to the Block type) or one of the Database Block editor -GG Lines tab.

About this task

The definition and description lines of a Database Block provide all the logical information needed to generate the source program of the Block. The physical information must be indicated on the -GG lines associated with the definition of a Block and on the -GG lines associated with a description line to modify it. You can modify or create generation lines in the following table. This table is available in the -GG Lines from the -G Lines tab of a Database Block editor, or from the -DH Lines, or -DR Lines or -DC Lines tab of a Database Block:
Figure 1. -GG lines section in the -DR lines tab of a Block Creating a -GG line on a Block -DR description line

Lines identified by the 'VIRT' and 'GUID' notation in the From field of the table correspond to virtual lines which are automatically generated and cannot be modified. You must create other lines from these lines to add modifications to the generation data so that they are recognized upon generation.

Procedure

Possible actions on the generation lines:
  1. To create a line, click Add . In the Type field, click and select, in the drop-down list that is automatically displayed, G for a generation line, V for a virtual line, or * for a comment to be generated. The lines created in this way are then identified by their type. These lines can be modified. Overriding virtual lines will not impact source lines but the lines will be copied into the target instance.
  2. To modify VIRT and GUID lines, you must override them. To do so, click a line to be overridden, then click the Override button. The line is edited, you can modify its description and type. Moreover, the GUID notation turns into FromGUID and the GUID notation turns into FromVIRT.
  3. You can then modify the lines with a FromVIRT or FromGUID notation. You must select the line you want to modify and click F2 to edit it. Then you can change its type or description.
  4. You can remove, move up and down only the comment lines, the FromGUID and FromVIRT lines and the lines you have added to the table. To do so, use the buttons on the right side of the table.
  5. You can use the Undo, Redo, Copy, Paste, Revert, Delete options in the pop-up menu (right-click) for any edited line.

Terms of use | Feedback

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