GetLocale Function
In NLS mode, retrieves the current locale setting for a specified category.
Syntax
$Include UNIVERSE.INCLUDE UVNLSLOC.H
name = GetLocale (category)
category is one of the following include tokens:
- Token
- Meaning
- UVLC$TIME
- Time and date
- UVLC$NUMERIC
- Numeric
- UVLC$MONETARY
- Currency
- UVLC$CTYPE
- Character type
- UVLC$COLLATE
- Sorting sequence
Remarks
GetLocale returns one of the following error tokens if it cannot retrieve the locale setting:
- Error
- Meaning
- LCE$NOLOCALES
- NLS is not enabled for IBM® InfoSphere® DataStage®.
- LCE$BAD.CATEGORY
- The specified category is not recognized.