Home | Previous Page | Next Page   GLS Environment Variables >

Setting and Retrieving 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 ONCONFIG configuration parameters exist for GLS, but you must set the appropriate environment variables.

ESQL/C

With IBM Informix ESQL/C, 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 IBM Informix: ESQL/C Programmer's Manual.

End of ESQL/C
UNIX Only

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.

End of UNIX Only
Windows Only

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

End of Windows Only
Important:
If you use ifx_putenv(), the application must set all environment variables before it calls any other Informix library routine to avoid initializing the GLS routines and freezing the values of certain locale and formatting environment variables.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]