Generation Defaults

#### Search Results

Search

# Generation Defaults

Default generation values are set at installation and are displayed in the input screen of any generation function.

Generation functions require that generation default values have been specified. Generation defaults can be changed with code G in the Defaults menu (or with the command `DEFAULT`) and the external object code. See Generation Defaults in the External Objects in Predict documentation.

Note
The individual parameters are described in the sections Storage of External Objects Owned by Predict and Common Parameters in the External Objects in Predict documentation and with the different generation functions. Defaults for language ADA, however, are described in the section Generation Defaults for Language ADA below.

The following rules apply for the use of default values for generation parameters:

- Default values of generation parameters can be changed with the function Generation Defaults in the Modify Defaults Menu or the command `DEFAULT` object code. For example: `DEFAULT COBOL` displays the Modify COBOL Defaults screen shown below.

      16:40:42                *****  P R E D I C T  *****                  2017-06-07
                                - Modify COBOL Defaults -
                                                            Added 2017-01-03 at 15:12

      Mark with 'X' the options which may be modified by the user.

      X Save as member ...........           X Save in library .... COBLIB
      X Overwrite option ......... Y  (Y,N)  X Op. system member ..
      X Punch / output ..........* N         X List offsets ......* N
      X List generated code ...... Y  (Y,N)  X Adabas version ....* I7
      X Generate format buffer ..* N         X Field name prefix .. ADABAS-
      X Check field names .......* A         X Field name suffix ..
      X Start level ..............  1 (0-40) X Validate ........... -
      X Level number increment....  1 (1-40) X Truncation ........* R
      X Level shift increment .... 3  (0-9)  X With Cond. names ... N (Y,N)
      X Nr. of abstract lines ....  3 (0-16) X Indexed by ........* N
      X Generate initial value ..* N         X Literal delimiter .* S
      X Synchronized ............* N         X Decimal character .* P
      X Depending on ............. N  (Y,N)  X Redefinition name .* S
      X Record buffer name .......
      X Format buffer name .......
                                               Compiler ..........* 7
        Preprocessor force ....... N  (Y,N)    Library system .....

- Most default values are displayed in the input screen of the respective generation function and can then be overwritten for temporary use. Changes to default values apply to subsequent generation tasks until another Predict function is executed.

- Generation defaults can be protected by blanking out the X preceding the parameter in Modify ... Defaults screens. Protected default values cannot be changed when executing a generation function. These fields are skipped when positioning the cursor with the TAB key.

- Some defaults values are not displayed in the input screen of a generation function and can therefore only be changed using the Modify Generation Defaults functions. These parameters are described under "Presettings" in the descriptions of individual generation functions in the respective parts of the section Generation in the External Objects in Predict documentation.

This section covers the following topics:

- Generation Defaults for Language ADA

## Generation Defaults for Language ADA

Generation defaults for language ADA are used by Adabas Native SQL.

    16:42:50                *****  P R E D I C T  *****                  2017-06-07
                              - Modify ADA Defaults -
                                                          Added 2017-01-03 at 15:12

    Mark with 'X' the options which may be modified by the user.

    X Adabas version ......* I7               X Field name prefix ....
    X Truncation ..........* R                X Field name suffix ....
    X Validate ............. *
    X Record buffer name ...

      Preprocessor force ..: N  (Y,N)

Parameters
Adabas version | The version of Adabas for which the copy code is to be generated.
Code | Version | Description
--- | --- | ---
I1 | V 5.1 for IBM/Siemens | Applicable to all languages. When generating copy/include code, sub/superdescriptors are not included in the record buffer layout.
I3 | V 5.3 for IBM/Siemens | As above.
I7 | V 7.1 for IBM/Siemens | As above.
O4 | V 4.1 for IBM/Siemens |
R1 | V 5.1 for IBM/Siemens | Only applicable to generation of Copy/Include Code. Sub/superdescriptors are included physically in the record buffer layout. Note Code generated with this Adabas version cannot be used for update statements.
R3 | V 5.3 for IBM/Siemens | As above.
R7 | V 7.1 for IBM/Siemens | Similar to I7, sub/super and collation descriptors are included physically in the record buffer layout.
Field name prefix | The prefix to be used for each field name generated.
Truncation | Specifies which characters are deleted if a generated field name is too long:
L | Truncate from the left
R | Truncate from the right
M | Truncate from the middle
Field name suffix | The suffix to be used for each field name generated.
Validate | Determines how invalid characters are handled.
blank | Invalid characters in a field name will result in an error message but will not be modified.
rep.char | Invalid characters in a field name are replaced by this character. Valid replace characters: letters A-Z, digits 0-9 and underscore (_).
* | Invalid characters in a field name are deleted.
Record buffer name | Specifies the name of the record buffer in the generated structure. If omitted, the file ID is used.
Preprocessor force | Y | Adabas Native SQL checks that the program to include the generated code is documented. If no Predict object documenting the program is found, the generation task is not executed and a message is given.
N | No check is performed. Default setting when Predict is installed.