Before using Sybase, you must make the following change to your system:
If you are troubleshooting Sybase problems, consider the following:
If the default setting for the client Operating System has been configured, but Sybase still reports national locale support errors, use the LANG environment variable to override the setting in the locales.dat file.
For example if the Windows NT client was causing problems and the locales.dat file contained the following setting for Windows NT:
[NT] locale = default, us_english, iso_1 locale = enu, us_english, iso_1 locale = fra, french, iso_1 locale = deu, german, iso_1
then the LANG setting for English would be:
LANG=enu
SYB-severity-number-text
SYB | A string which indicates to COBSQL that this is a modified Sybase error message. |
severity | Indicates the severity of the error; some of the Sybase messages are only warnings rather than normal or fatal errors. |
number | A unique, four digit error number assigned to the Sybase error. |
text | The original Sybase error message. |
For example, a typical entry in the esql.loc file might be:
9 = M_PRECLINE, "Warning(s) during check of query on line %1!."
and this would be changed to read:
9 = M_PRECLINE, "SYB-W-2009 Warning(s) during check of query on line %1!."
It is recommended that you make a copy of esql.loc before altering it. Using the modified version, COBSQL can detect the full range of Sybase error messages.
The location of esql.loc is dependent on the language and code page used. This is defined in the locales.dat file. If the definition of the default language for the AIX platform was as follows:
[aix] locale = C, us_english, iso_1 locale = En_US, us_english, iso_1 locale = en_US, us_english, iso_1 locale = default, us_english, iso_1
The default langauge would be us_english, using the iso_1 code page, so the copy of esql.loc that is to be used is:
/sybase-home/locales/messages/us_english/iso_1/esql.loc
where sybase-home is the directory that the Sybase client is installed into.
For more information on how Sybase uses and locates the different error message files, refer to your Sybase Client Reference Manual.