numerical_functions 

Syntax

<numerical_functions> ::= <scale_spec>
|
<round_or_trunc_spec>
| <scale_spec> <round_or_trunc_spec>

Use

This is a syntax rule for describing columns.

Use it to scale, round off or shorten numeric data values when you load data from the source file to the target table, or unload data from the source table to the target file.

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
...
INFILE 'meter.data'

DATAEXTRACT * FROM distance
  cm    10-14 INTEGER SCALE 2
  m     14-17 INTEGER
  km    18-21 INTEGER SCALE -3 TRUNC 2

OUTFILE 'dimensions.bin' FORMATTED