To display, create or modify the general characteristics of a repository data type, you need to either:
|
Name of the data type.
This name must be a valid data type name (as defined by IBM), unique among the names of data types in the environment.
Length: 15 characters maximum.
Mandatory entry.
Description clearly identifying the data type.
Length: 250 characters maximum.
Mandatory entry.
Values available:
|
Default: Alphanumeric.
Note: The Date, Time and Timestamp types are not supported by the C generator for ADELIA programs.
Number with 7 positions maximum.
The length can be indicated for alphanumeric data:
- in kilobytes, by adding the suffix "K" to the value (e.g. 100K for 102400), or
- in megabytes, by adding the suffix "M" to the value (e.g. 1M for 1048576).
Optional entry.
For the Date, Time and Timestamp types, the length is protected and automatically assigned as follows:
|
When the type is Alphanumeric:
Note: By default, for PC SQL DBMSs, alphanumeric types (whether variable or not) are generated in VARCHAR (NVARCHAR) format, except if the "Non variable alphanumerical in CHAR" box is checked. When this is the case, only the variable alpha types are generated in VARCHAR (NVARCHAR) format, the non variable types being generated in CHAR (NCHAR) format.
For the Image type, the length is only taken into account with DB2/400. This length must be a value between 1 and 2048 Mb, or it can be set to the Default value, in which case the table column size will be DB2/400's default size, i.e. 1 Mb.
Minimum reserved length.
This value is only taken into account by DB2/400.
This field is only visible if the type indicated in the Type field is Alphanumeric and the Variable checkbox is checked.
Format used for the date.
Possible values:
|
Default: *ISO.
This field is only visible when Date is specified in the Type field.
Number of two-digit decimal positions.
As a rule, if this field is left blank, the data type is considered as alphanumeric; otherwise, it is considered as numeric.
This field is only visible if the type specified in the Type field is Binary, Packed, Packed by def. or Extended.
Optional entry.
SQL constraint associated with the columns of the generated SQL tables.
Values available:
|
Default: *ENV.
The visibility of a data type can be either public or private.
Only the owner of the data type, or a software engineer with modification authorities, can change the visibility.
A public data type cannot be changed into a private data type unless all the properties using it are private and are attached to the current application area.
In creation mode, the visibility is by default set to public.
This button opens a dialog box displaying the list of management rules assigned to the data type, as well as the list of available management rules which can be assigned to the data type.
This button opens a dialog box displaying the list of management rules assigned to the data type, in order to resequence this list by modifying the sequence numbers of the listed management rules.
This button is not active in display mode.
This button opens a dialog box which is used to display or modify the list of values or the limit values (Range), the default value, and the example value of a data type.
This button opens a dialog box which is used to display or modify the keyboard options, the edit word or code, and the help document of a data type.
This button opens a dialog box displaying information on the current data type, such as the name of the software engineer-owner, the dates and times of creation and modification.
This button opens a dialog box for entering a comment text which will be associated with the current data type.
The Enter button (in display mode) closes the dialog box.
The Create button (in creation mode) or Modify button (in modification mode) validates the modifications made in the dialog box (the modifications are applied to the properties which have the data type), as well as the modifications made in the dialog boxes used to:
after a verification of their validity.
The various fields of the dialog box are verified. If all are valid, the data type definition is updated in the database before the box is closed; otherwise, an error message is displayed.
This button closes the dialog box without validating the choices made.
If a data type creation is canceled, the possible comment text is deleted, as well as the links with the management rules which were assigned to this data type.
In modification mode, this button closes the dialog box without validating the modifications made nor the ones made in the dialog boxes used to:
Keyboard-shortcut: Esc.