Syntax Rules for Column Descriptions
<numerical_functions> ::= <scale_spec>
| <round_or_trunc_spec>
| <scale_spec> <round_or_trunc_spec>
Use this syntax rule to scale, round, or shorten numeric data values when you load data from the data stream to the target table or unload data from the source table to the data stream.
Note that you must always specify scale_spec before round_or_trunc_spec.
DATALOAD TABLE distance
...
cm 7 SCALE 2
cm 7 SCALE -3 ROUND 1
...
INSTREAM 'meter.data'
DATAEXTRACT * FROM distance
cm 10-14 INTEGER SCALE 2
m 14-17 INTEGER
km 18-21 INTEGER SCALE -3 TRUNC 2
OUTSTREAM 'dimensions.bin' FORMATTED