Previous Topic: Defining Column AttributesNext Topic: Defining Column Levels and Values


Specifying Column Formats

ASF generates an internal and external picture for each column you define, based on the type and width specified on the Column Definition screen. The external picture is displayed in the Display Format field of the Extended Column Definition screen; the internal picture is displayed in the Stored Format field. The following table shows the default formats for each column type.

Default Display and Storage Formats

Column type

Display format (external picture)

Storage format (internal picture)

TEXT

X(n)

X(n)

NUMERIC

-Z(n)

S9(n)

CURRENCY

-Z(n-2).99

S9(n-2)V99

Note: The length of text fields is limited only by the size of the database page. The lengths of numeric fields and currency fields are 18 characters.

Change Defaults

You can change the default format provided:

Specify New Formats

Specify the display and storage formats, as follows:

Specify Usage

The value specified in the Usage field can affect the storage and display formats of a column. By default, the column usage is DISPLAY for text columns and COMP-3 (packed decimal) for numeric columns. The default display and storage formats shown in :tref refid=formats. above apply to the default usage. If the usage COMP (binary) is specified for a numeric column, the default display and storage formats also apply.

Floating Point Numbers

ASF also supports floating point numbers, both short (single-precision) and long (double-precision). If a usage of COMP-1 (short floating point) or COMP-2 (long floating point) is specified, the display and storage formats are altered as follows: