Entering content frame

 number_spec 

Syntax Rules for Describing the Data Stream

Syntax

<number_spec> ::= DECIMAL '/[<t>]/<d>/'

t

Defines the character for structuring thousands
The Loader default value is not a character.

d

Defines the character used to separate integers from decimal places
The Loader default value is a period.

If no digit or character is specified for t or d, the Loader uses the default.

Use

You use this syntax rule to specify which characters are to be used in decimal numbers to group thousands and separate integers from decimal places.

·        If you use this data format definition in the SET command, then you also specify the number format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.

Number format in the SET command

SET DECIMAL '/ /,/'
Specifies the following number format: 1 999 987,98

SET DECIMAL '///'
Specifies the following number format (Loader default): 1999987.98

·        You can change the specified number format for individual commands. For more information, see Date Format.

Number format in a command

DATAEXTRACT freight FROM edemo.orders
OUTSTREAM FILE 'orders.data'
FORMATTED
DECIMAL '/./,/
'

Results in the following number format for a value in the file: orders.data:
1.007,64

 

Leaving content frame