Hi,
Previously I missed your remark about succesfully executing the SP from dbaccess. This suggests that the shell commands invoked by the SYSTEM statement can only be executed once the environment for a login shell is set. Keep in mind that, like with a crontab job, in this case the invoked shell is not a login shell and therefore hasn't got the settings from a .profile. So make the shell that's started by SYSTEM selfcontaining by including all the necesary parameters in the argumentstring. (You could source the users .profile in the string like:
Code:
'(. ${HOME}/.profile;WORKDIR=/home/ap/test;export WORKDIR;cd /home/ap/test/bin;./' || cmd || ')'
but I would set the necesary variables explicitly in the script.)
Here I've also added './' to the invocation of cinc, presuming it resides in /home/ap/test/bin, and put braces around the series of commands for some UNIX systems require that for running multiple commands on the command line.
BTW. I would run a series of OS commands from a SP by first creating a shell script in the way you append a line to your /home/ap/test/test.log file. Next I would run the shell script with a new SYSTEM statement and finally remove the shell script.
And about the locale's I only can say that formally the DB_LOCALE of the server and DB_LOCALE of the client have to match so the driver (JDBC/ODBC) can make the conversions from the CLIENT_LOCALE to the DB_LOCALE. Recently (yesterday) I experienced that our new IDS10 server complained about the mismatch in my ODBC driver where the old IDS9.2 didn't, thus refusing connection from my application.
Good luck, and let the games begin... (old Roman proverb)
