All numeric external data types (INTEGER, REAL, DECIMAL, ZONED) are interpreted as binary values. These can be converted to any of the internal data types (FIXED, SMALLINT, INTEGER, FLOAT) used by the database.
· 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 must specify the source data stream in the load command with either the FORMATTED or FORMATTED BINARY format. The data stream must be coded in binary.
You can use the FASTLOAD command and the DATALOAD command to load external binary values into database tables.
DATALOAD TABLE room
hno 01-05
type 06-11
free 12-15 INTEGER
price 16-21 DECIMAL (2)
INSTREAM 'room.data' FORMATTED BINARY