Rational Developer for System z, Version 7.5

-G Lines

This tab contains two sections. The first, the '-GC Lines' section, enables you to enter comments on the Program. The second, the '-GO Lines' section, enables you to specify the generation options of the Program. Click the downward arrow in front of a section to open it.

-GC Lines

These lines are used for documentation purposes. Comments are available with all entities and allow you to write, edit text in relation to the selected instance. This tab allows you to write, modify, move or delete text lines using basic word processing functions.

Type
In the Type input field of the -GC lines section, put your cursor and enter the type of line:
Value Comments
* or blank Standard documentation line.
A Alias for the Segment name.
Description
In the Description input field of the -GC lines section, put your cursor and enter your comment.

On a blank-type line, you enter a free comment.

On an A-type line, enter the COBOL Segment name.

Note: A double click on a word selects the word, clicking in the left margin selects the entire line.

-GO Lines

In this section, you enter the generation options of the Program.

For each option, you must enter O in the Type column.

In the Description column, you can specify generation options.
  • You can modify the date transformation function. Date transformation is managed by default in the F9520 function. However you can choose another function if you enter DATPRO=ffss, where ffss is the chosen function-subfunction.
  • You can request the breakdown of generated dates into elementary fields by entering BREAKDATE=YES (or inhibit it by entering BREAKDATE=NO if it has been set to YES at the Library level).
    This breakdown will be effective:
    • For Programs: on the elementary Data Elements of the Segments called in the Call of Data Structures (-CD) and in the Work Areas (-W), on ’F’-type lines.
    • For Dialogues/Screens: on the elementary Data Elements of the Segments called in the Dialogue Complement (-O), in the Screen Calls of Segments (-CS) and in the Work Areas (-W), on ’F’-type lines.
    • on Data Elements called in the Work Areas (-W), on ’I’, ’E’ or ’S’-type lines.

      If you indicate the BREAKDATE=YES option, the Data Elements defined with a date format will be generated as elementary fields which correspond to the year, month and day and a separator (if it is included in the date format).

      Example of a date defined with an M-type format (MM/DD/YYYY):

      10 ffnn-date.
       11 ffnn-date-MMX.
        12 ffnn-date-MM PICTURE 99.
       11 ffnn-date-S1 PICTURE X.
       11 ffnn-date-DDX.
        12 ffnn-date-DD PICTURE 99.
       11 ffnn-date-S2 PICTURE X.
       11 ffnn-date-YYX.
        12 ffnn-date-YY PICTURE 9(4).
    A date will be broken down only if the generated COBOL level of the date field is lower than or equal to 47.

    The Data Elements called in SQL Segments cannot be broken down, except if these SQL Segments are DB2 Segments and if the DESCR=ALL option has been entered on the DB2 Block -GO lines.

    Since host variables cannot be group fields, the elementary fields will be generated under a redefined group field in the following way: ffnn-date-BRK REDEFINES ffnn-date.

  • You can modify the format of the generated indexes by entering INDIC=, for example INDIC=COMPUTATIONAL-3. If you do not specify this option, this format will then depend on the type of COBOL code.

Related reference
Program Overview tab
Program Definition tab
-CD Lines tab
-W Lines tab
-CP Lines tab
Keywords tab
Documentation tab

Terms of use | Feedback

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