If you choose
from the context menu of a field, a window appears in which you can define additional attributes.Only those types of additional attributes appear in the window that apply to the type of field. For example: the option Adabas security & Edit mask is not contained in the list when a DB2 index field is processed.
The additional attributes are described in the following sections:
Attributes | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gr.structure |
The field attribute Gr.structure is used to change the record layout generated from a PE/PC field. If Gr.structure is set to N, all fields within a PE group are treated as multiple value fields. Setting Gr.structure to N prevents the format buffer for Adabas from becoming very large. Gr.structure = N can only be specified for real fields in the deepest PE group (highest level number). For example: if there are 3 PE groups in the file on level 1, 4 and 6, only the PE groups on level 6 can be marked with Gr.structure = N. If Gr.structure is set to blank, PE/PC groups are to be generated as groups which occur n times as a whole. |
||||||||||||||||
Justify |
|
||||||||||||||||
Synchronized |
|
||||||||||||||||
Initialize with |
|
||||||||||||||||
Init. value |
If Initialize with is either F or blank a value used for initialization of a field must/can be specified. Length and format of the Init value must be valid for the field. For binary fields hexadecimal constants such as FB0A are valid. Hexadecimal values can be specified in two ways:
See also Condition Name and Value. |
||||||||||||||||
Indexed by | String that is used when generating the COBOL INDEXED BY clause (only valid for fields of type MU/MC or PE/PC). | ||||||||||||||||
Depending on | String used when generating the COBOL DEPENDING ON clause (only valid for fields of type MU/MC or PE/PC). |
Attributes | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Condition name |
A value to be used when generating either equate data in Assembler copy code or a level 88 entry in COBOL copy code. Up to 29,970 condition names can be entered. Each name needs at least one corresponding condition value. Using condition names can make logical conditions and assignments easier to handle. |
||||||||||||||||
FC |
|
||||||||||||||||
Condition value |
The length and format of this value must be valid for this field. This value must have a corresponding condition name. Up to 29,970 condition values can be entered. If several values correspond to the same name, put the name before the first value and leave the name field blank before later values. THRU in the name field indicates a range of values ending with the value on that line and beginning with the value on the previous line. |
Attributes | |
---|---|
Field name synonyms | Synonyms to be assigned to the field when definitions in the following programing languages are generated: Natural, COBOL, PL/I, BAL (Assembler), FORTRAN, PASCAL, ADA or C. |
Attributes | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Adabas Edit mask |
|
||||||||||||||||||||||||||||
Time zone | The time zone in which a timestamp is applied. Only available for fields using one of the following Adabas edit masks described above: DT, NT, TS, UT or XTS. | ||||||||||||||||||||||||||||
Daylight saving | The daylight savings indicator can only be specified for date-time fields defined with the TZ option. Indicates whether daylight saving applies (Y) or not (N). | ||||||||||||||||||||||||||||
Security access level | The Adabas access security level of the field. | ||||||||||||||||||||||||||||
Security update level | The Adabas update security level of the field. | ||||||||||||||||||||||||||||
System field |
|
Applicable only to DB2 fields of type D or MT, Oracle fields of type OT and to Adabas fields of type A.
The following screen shows the options for DB2 fields of type D and MT.
The following screen shows the options for Oracle fields of type OT.
Attributes | ||
---|---|---|
Use as security label |
Specifies that the table column will contain security label values. A table can have only one security label column. To define a table with a security label column, the primary authorization ID of the statement must have a valid security label, and the RACF SECLABEL class must be active. In addition, the following conditions are also required:
Refer to your DB2 documentation for further details. |
|
Partitioning | Indicates for each implementation of a table in an SQL server, which field controls the partitioning. Valid values: | |
blank |
Non-partitioning. The current field is not a partitioning key and has no index. |
|
T |
Table partitioning key. The table is data partitioned and the current field is the partitioning key. Additionally, it may have a non-partitioned index. |
|
I |
Index controlled key. The table partitioning is controlled by a partitioning index. The current field must have an index defined; this is indicated by descriptor type D (index), P (primary key) or F (foreign index). |
|
N |
Non-partitioned secondary index. The field has a non-partitioned index, but it is not the partitioning key. |
|
P |
Data partitioned secondary index (DPSI). The field has a partitioned index, but it is not the partitioning key. Within the file a different field must be defined as partitioning key. |
|
Q |
Table partitioning key and DPSI. The table is data partitioned and the current field is the partitioning key. In addition, a partitioned index is defined for the field. |
|
Cluster index | Only available for descriptor type D (index), P (primary key) or F (foreign index). | |
Y | The records (rows) in the DB2 table are stored in the sequence of this index. Valid for max. one index per table. A table contained in a partitioned tablespace must have one index marked as a clustered index, if the partitioning option Index controlled key is to be used. | |
Exclude NULL keys |
Only available for DB2 fields of type D and MT. Indicates whether NULL keys are excluded. |
|
blank | Not specified. | |
Y | Yes. | |
N | No. | |
Partitioning key |
Only available for Oracle fields of type OT. Indicates how the partitioning key is organized: |
|
R | Range partitioned. | |
H | Hash partitioned. | |
blank | None. | |
Partitioned index |
Only available for Oracle fields of type OT. Indicates how the partitioned index is organized: |
|
A | Global range. | |
B | Global hash. | |
C | Local range. | |
D | Local hash. | |
blank | None. | |
Sort |
Only available for Oracle fields of type OT. Specifies whether the rows of the cluster on this column are sorted after applying the hash function |
|
Cluster column |
Only available for Oracle fields of type OT. Specifies whether or not this field (or combination of fields in case of an SP field) is used as cluster column |
|
Encryption |
Only available for Oracle fields of type OT. Specifies the encryption method to be used: |
|
1 | AES256 | |
2 | AES192 | |
3 | AES128 | |
4 | 3DES168 | |
blank | None. | |
Integrity algorithm |
Only available for Oracle fields of type OT. Specifies the integrity algorithm to be used: |
|
S | SHA1 | |
N | NOMAC | |
blank | None. | |
Salt |
Only available for Oracle fields of type OT. Specify SALT to instruct the database to append a random string to the clear text of the column before encrypting it. |
|
Include column |
Only available for Oracle fields of type OT. If this column is part of the primary key, this column determines where to divide an index-organized table row into index and overflow portions. |
Attributes | |
---|---|
Procedure name | Name of a field procedure (DB2 parameter FIELDPROC). See the Natural for DB2 documentation for more details. |
Procedure parameter | Parameters passed to the field procedure. See the Natural for DB2 documentation for more details. |
Applicable only to fields of type DV in files of the following types:
B | Adabas SQL views |
E | DB2 views |
IV | Intermediate view |
JV | Ingres view |
OV | Oracle view |
X | General SQL |
XV | Informix view |
YV | Sybase view |
The subquery of the file that contains the current field can specify a correlation name for any file whose fields it uses. The name of each field referenced in the expression must be qualified (preceded) by the correlation name of the file from which the field is taken, if a correlation namehas been specified for that file, or the ID of the file from which the field is taken, if no correlation name has been specified for it. The expression can include both comment lines (with /*, * or ** in the first two columns) and line comments (preceded by /*).
Example: A field which contains the annual salary:
* * Field expression of a derived field * USER-TABLE1-SALARY * 12 /* SALARY FOR 12 MONTHS + CORRELATOR2-BONUS
Index fields (descriptor type D, F or P) in a file of type D (DB2 table), are defined in the tabs below.
Attributes | |||||||||
---|---|---|---|---|---|---|---|---|---|
Definition of Index | |||||||||
Index name | The name of the DB2 index. See Key or Index Fields in SQL Files - Superfields. | ||||||||
Cluster index |
|
||||||||
Bufferpool | The buffer pool associated with the index. | ||||||||
Close option |
|
||||||||
Copy |
|
||||||||
Piece size |
The maximum piece size for a non-partitioned index. Valid values: 0, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304. |
||||||||
Reverse scans |
|
||||||||
Padded |
|
||||||||
Unique where not null |
|
||||||||
Compression |
|
||||||||
Defaults of Using- and Free-Block | |||||||||
VSAM catalog name | Name of the VSAM catalog for the index. The parameter VSAM catalog name must be specified if data sets are already defined for the index. | ||||||||
Storagespace | Storagespace where DB2 defines the data sets for the index (optional). If no storagespace is specified, DB2 uses the default storagespace. | ||||||||
Primary allocation | Minimum primary space allocation (in Kbyte) for DB2-defined index data sets. A value specified in this field is stored only if the attribute storage group has been specified. | ||||||||
Secondary allocation | Minimum secondary space allocation (in Kbyte) for DB2-defined index data sets. A value specified in this field is stored only if the attribute storage group has been specified. | ||||||||
Erase option |
|
||||||||
Free pages | A number from 0 to 255 which indicates that one page
is to be left free each time this number of pages is used when the load
operation creates index entries or when the index is reorganized. Zero indicates that no pages are to be left free. |
||||||||
Percentage free | A number from 0 to 99: the percentage of each page to be left as free space when index entries are created by a load operation or when the index is reorganized. | ||||||||
GBPCACHE |
|
For a partitioned index (a cluster index for a table in a partitioned table space), the following tab is displayed. Each partition can then be defined in accordance with the Default values of using- and free-block (see description above).
Note:
The data displayed in this screen depend on the values selected
in the Partitioning field of the DBMS extensions screen.
To define a new partition, use the
button. When you have defined more than one partition, a scroll bar is available. To go to a specific partition, use the scroll bar. To delete the currently displayed partition, choose the button.Attributes | |
---|---|
Limit value |
The highest value of the index key in this partition. At least one constant must be used and as many constants as there are columns in the key can be specified. The concatenation of all the constants is the highest value of the key in this partition of the index. Note: |
All other attributes are described above.
Index fields (descriptor type D, F or P) in a file of type OT (Oracle table), are defined in the tabs below.
Parameters | ||
---|---|---|
Index attributes | ||
REVERSE | Specifies whether the index is a reverse key index. | |
Y | Yes. | |
N | No. | |
VISIBLE | Specifies whether the index is visible. | |
Y | Yes. | |
N | No. | |
PARTIAL | Specifies whether the index is a partial index in a partitioned table. | |
Y | Yes. | |
N | No. | |
SORT | Specifies whether the index is sorted in ascending order. | |
Y | Yes. | |
N | No. | |
COMPRESSION | Specify whether or not to use compression. | |
Y | Yes. | |
N | No. | |
A | Advanced. | |
blank | Not specified. This is the default. | |
Compression length | Specify the compression length. |
Index segment | ||
---|---|---|
PCTFREE |
If an integer from 1 - 99 is specified here, the clause
|
|
PCTUSED |
If an integer from 1 - 99 is specified here, the clause
|
|
INITRANS |
If a value from 1 - 255 is entered here, the clause
|
|
Tablespace | If a tablespace name is
entered here, the clause TABLESPACE name is
generated in the CREATE TABLE statement. This name
represents the tablespace in which the table will be created.
|
|
LOGGING | Specify whether or not to
use the LOGGING clause in a CREATE
TABLE or ALTER TABLE statement.
|
|
Y | Yes. | |
N | No. | |
F | File system like. | |
blank | Not specified. This is the default. |
Index storage | ||
---|---|---|
If specified, the values
below are used in the STORAGE clause generated with
the CREATE TABLE statement. All of the values below
must be specified as integers.
|
||
INITIAL | The size of the first extent allocated when the object is created - the original amount of space allocated to the object. A value for Unit has to be applied in addition: | |
K | Kilobyte. | |
M | Megabyte. | |
G | Gigabyte. | |
T | Terabyte. | |
P | Petabyte. | |
E | Exabyte. | |
NEXT | The size of every subsequent extent to be allocated. A value for Unit has to be applied in addition. Possible values for Unit are described under INITIAL. | |
MAXSIZE | The MAXSIZE
clause lets you specify the maximum size of the storage element.
|
|
OPTIMAL | Specifies an optimal size in bytes for a rollback segment. | |
MINEXTENTS | The total number of extents to be allocated when the segment is created. | |
MAXEXTENTS | The total number of extents, including the first, which can ever be allocated. | |
PCTINCREASE | The percent by which each NEXT extent will grow over the last extent allocated. | |
FREELISTS | The number of process free lists used to administer the free data blocks. | |
FREELISTS GROUPS | Magnitude of the set of free lists. | |
BUFFERPOOL | Determines the configuration of the buffer cache. | |
D | Default | |
K | Keep | |
R | Recycle | |
blank | not specified | |
FLASH_CACHE | Defines the configuration of a second tier of buffer cache on flash disks. | |
D | Default | |
K | Keep | |
N | None | |
blank | not specified |
For a partitioning key and partitioned index, the following can be defined depending on whether they are hash- or range-partitioned.
To define a new partition, use the
button. When you have defined more than one partition, a scroll bar is available. To go to a specific partition, use the scroll bar. To delete the currently displayed partition, choose the button.Attributes | |
---|---|
Name | The partition name. |
Literal | The literal name. |
Segment | Specifies the Segment attributes of the partition. |
Storage | Specifies the Storage attributes of the partition. |
Parameter | Description | |
---|---|---|
Name | The partition name. | |
Tablespace | The tablespace name. | |
COMPRESSION | Specify whether or not to use compression. | |
Y | Yes. | |
N | No. | |
A | Advanced. | |
blank | Not specified. This is the default. | |
Compression length | Specify the compression length. |
This additional attribute is only applicable for fields in
Sybase tables with Null value option set to R and Null default option set to Y.
Adabas D tables, DB2 tables, Informix and Oracle tables with Null value option set to R or U and Null default option set to Y.
Attribute | |
---|---|
Default name | The default specified here is used in the CREATE TABLE
statement. Sybase naming conventions apply. See
Naming
Conventions for SQL Objects.
Note: |
Default expression | An SQL expression can be specified between the angled brackets. This expression determines the default value, for example a constant or function. If specified, this value is always used by the function Generate CREATE statement. |
Depending on the field definition, up to four constraint names can be specified.
Attributes | |
---|---|
Check constraint | Constraint name in the respective SQL system for the fact that a linked verification of status S exists. |
Primary key | Constraint name for the fact that the field is a primary key. |
Unique | Constraint name for the fact that a unique constraint exists (indicated with U in column Unique option of the field object in Predict). |
Null/Not null | Constraint name for the fact that the Null or Not null default option is set to Y. |
These additional attributes are only applicable for fields in DB2 or Oracle tables.
The following additional attributes are only applicable for fields of type
QN (Row ID) or
a numeric field.
Attributes | ||
---|---|---|
Identity | Specifies whether the column is an identity column for the table. | |
As transaction ID | ||
Generated | ||
Indicates whether DB2 or Oracle generates values for the column. Valid values: | ||
A | Always | |
D | By default | |
blank | None | |
Start with limit | The first generated value will be the highest/lowest existing value +/- increment value | |
Start value | Specifies the first value for the identity column. | |
Increment value | Specifies the interval between consecutive values of the identity column. | |
Cache | Specifies whether to keep preallocated values in memory. | |
Cycle | Specifies that values continue to be generated for this column after the maximum or minimum value has been reached. | |
Min value | Specifies the numeric constant that is the minimum value that is generated for this identity column. | |
No minvalue | Specifies for DB2 tables whether or not a minimum end point of the range of values for the identity column has been set. | |
Max value | Specifies the numeric constant that is the maximum value that is generated for this identity column. | |
No maxvalue | Specifies for DB2 tables whether or not a maximum end point of the range of values for the identity column has been set. | |
Order | Specifies whether the sequence numbers must be generated in order of request. Valid values: | |
Y | Order | |
N | No order | |
blank | Not specified |
The following additional attributes are only applicable for fields of type
TS (Timestamp)
Attributes | |||||||||
---|---|---|---|---|---|---|---|---|---|
Change log | Specifies whether the column is a change log column for the table. | ||||||||
Generated |
|
The following topics are covered:
This additional attribute is only applicable for Adabas fields with format A, AV or LO. The option No Blank Compression controls that trailing blanks are suppressed when a value is stored.
The following topics are covered:
These additional attributes are applicable for DB2 and Oracle table fields with format TS.
Attributes | |
---|---|
Fractional of seconds | A timestamp value can include a precision of fractional seconds in the range from 0 to 12 (Oracle 0-9). For DB2, if no value is entered, the default value 6 is taken. |
Time zone | Provides information on the time difference in hours and minutes between the local time and Coordinated Universal Time (UTC). Adds an additional time zone offset value to the local timestamp value in the format +HH:MM (ahead of UTC) or -HH:MM (behind UTC). |
This additional attributes is applicable for DB2 LOB fields.
Attributes | |
---|---|
Inline length | For BLOB, CLOB and DBCLOB columns. Specifies the maximum number of bytes that are stored in the base table space for the column. Must be between 0 and 32680 for a BLOB or CLOB column and between 0 and 16340 for a DBCLOB column.. |
These additional attributes are applicable for DB2 table fields with formats A, AL and AV.
Attributes | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Generated expression |
|