Previous Topic Next topic Print topic


NLS CURRENCY LENGTH

Specifies the number of bytes to allocate for the currency symbol in a PIC field.

Syntax:

>>-.---.--NLS-CURRENCY-LENGTH-"length"------><
   +-/-+ 

Parameters:

length
The size (in bytes) of currency symbol to use, between 1 and 32 (inclusive).

Properties:

Default: NLS-CURRENCY-LENGTH"1"
Phase: Syntax check
$SET: Initial

Dependencies:

The NLS directive must be set for this directive to take effect.

Comments:

The currency symbol will be truncated or padded with spaces if the length of the current locale's currency symbol differs from the specified length.

Example:

The currency sign for the Albanian locale is "Lek". For a data item of PIC $999, value 123, the directive will have the following results:

Directive setting Result
Unspecified, or NLS-CURRENCY-LENGTH"1" "L123"
NLS-CURRENCY-LENGTH"2" "Le123"
NLS-CURRENCY-LENGTH"3" "Lek123"
NLS-CURRENCY-LENGTH"4" " Lek123"
Previous Topic Next topic Print topic