Set and retrieve environment variables

The GLS feature lets you use the diacritics, collating sequence, and monetary, date, and number conventions of the language that you select when you create databases.

No configuration parameters exist for GLS, but you must set the appropriate environment variables.

With , you can use the C putenv() function to modify, create, and delete environment variables, and the C getenv() function to retrieve the values of environment variables from the operating-system environment. For details, see the HCL OneDB™ ESQL/C Programmer's Manual.

On UNIX™ platforms, set environment variables with the appropriate shell command (such as setenv for the C shell). For more information, see your UNIX documentation.

On Windows™, set environment variables in the InetLogin structure or use the Setnet32 utility to set environment variables in the registry file. For more information about InetLogin, see the Microsoft™ Windows documentation for your SQL API. For more information about Setnet32, see your HCL OneDB Installation Guide.

Important: If you use ifx_putenv(), the application must set all environment variables before it calls any other HCL® OneDB library routine to avoid initializing the GLS routines and freezing the values of certain locale and formatting environment variables.