Home | Previous Page | Next Page   The Database Option > Displaying Database Information >

Retrieving Nondefault Locale Information

Global Language Support (GLS) and Native Language Support (NLS) affect the order in which lists appear in DB–Access. GLS enables the display and appropriate ordering of non-English data. Legacy database server versions used NLS for this purpose.

Native Language Support

If the current database supports NLS, you can select the Nls option on the DATABASE INFO menu to display information about collating sequence and C CType (character classification type), as Figure 34 shows.

Figure 34. The DATABASE INFO Menu with NLS Information Displayed
DATABASE INFO:  dBspace   Nls   Routine  Databases  Exit
Display NLS information for a database.

-------------- - stores_demo ------------ Press CTRL-W for Help --------


fr_fr.8859-1 Collating Sequence
CType

An error message displays if the database does not support NLS or the environment variables for NLS are not properly set.

End of Native Language Support
Global Language Support

DB–Access does not provide an option on the DATABASE INFO menu for displaying the GLS collating sequence and character classification type. To obtain information about the GLS locale enabled for your database server, enter the following query with the SQL editor that is described in The Query-language Option:

SELECT tabname, site FROM systables
WHERE tabid = 90 OR tabid = 91

The row with tabid 90 stores the COLLATION category of the database locale. The row with tabid 91 stores the CTYPE category of the database locale. Figure 35 shows the result of the preceding query for the default U.S. English locale.

Figure 35. Retrieving GLS Information
SQL:   New  Run   Modify  Use-editor  Output  Choose  Save  Info  Drop  Exit
Run the current SQL statements.

------- mydata@mynewdb ------ Press CTRL-W for Help ---

tabname            GL_COLLATE
site               en_US.819

tabname            GL_CTYPE 
site               en_US.819 

2 row(s) retrieved

For further information on the COLLATION and CTYPE categories in a GLS locale file, see the IBM Informix: GLS User's Guide.

End of Global Language Support
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]