Hallo,
vielleicht hilft dies:

Problem: A Linux® application using the iSeries ODBC driver for Linux® received a SQL0104 token not valid error. The error occurred only when the SQL statement contained literals that used characters outside the invariant character set.

The isql utility shipped with versions of unixODBC prior to June 2003 does not call the setlocale() function and may run into this problem.

Resolution: The Linux® ODBC driver is using the locale set up by the application to convert the SQL statement. If the application does not set up the locale in its main(), the default compiler "C" locale is used. This implies a client code page of 367 is used for some client conversions. Code page 367 does not support many characters outside the invariant character set. The main application must ensure the locale is set up properly.

#include <locale.h>
int main( int argc, char* argv)
{
setlocale( LC_ALL, "" ) ;
}