All
numeric external data
types (INTEGER, REAL, DECIMAL, ZONED) are interpreted as binary values.
These can be converted to any of the internal database data
types (FIXED, SMALLINT, INTEGER, FLOAT) (Converting Data
Types).
· The Loader always interprets data of the data type INTEGER as signed values. You use the syntax rule <int_spec> to specify how these values are represented in the source data stream.
· Data of the data type REAL is coded in a host-specific format and cannot be transported between different operating systems and computer platforms without being converted again.
You can use the FASTLOAD command and the DATALOAD command to load external binary values into database tables.
DATALOAD TABLE hotel
hno 01-04
INTEGER
name 09-18
zip 20-25
DECIMAL
city 27-36
price 41-44
REAL
INFILE 'hotel.data' FORMATTED
You must specify the source data stream in the load command with either the FORMATTED format or the FORMATTED BINARY format. The data stream must be coded in binary.