field_format 

Syntax

<field_format> ::= /* blank */ | CHAR
| DECIMAL [<valFRACTION>] | ZONED [<valFRACTION>]
| INTEGER | REAL

valFRACTION

Number of characters after the comma for the data types DECIMAL and ZONED

Use

This is a syntax rule for describing tables.

Use this option to describe the data type of the data fields in the source file or target file.

You only need to specify the data type in a command for loading or unloading data or in a condition if the data field in question is to be read or output in a format other than CHAR. Every internal column format in the database can be read and output in CHAR format.

Data Type Conversion During Loading or Unloading

 

External data type

Internal data type

Loading data
to a database instance

INTEGER, DECIMAL, ZONED, REAL

FIXED, FLOAT, SMALLINT, INTEGER

Unloading data
from a database instance

FIXED, SMALLINT and INTEGER

INTEGER, DECIMAL, ZONED, REAL

FLOAT

REAL or CHAR

DATALOAD TABLE article
  foa         01-08
  des         09-39
  stock      40-43 INTEGER
  min_ord     44-45 INTEGER
  ordered     46-49 INTEGER
  del_date  50-57
  price       58-65 DECIMAL (2)
  weight      66-69 REAL
INFILE 'customer.data' FORMATTED