roberto l wrote:
> $ENV{THREADS_FLAG}=qq|native|;
> $ENV{JAVA_HOME}=qq|/usr/java|;
> $ENV{LANG}=qq|en_US|;

> As you can see I've setup every single variable to connect, but still no
> success, I'm still getting the message "Total Environment allocation
> failure!  Did you set up
>  your DB2 client environment?" at the Apache logs. What is missing? What
> I'm left to do? Any hint or lead will be greatly appreciated.

Have you tried to set the variables in the shell 
and run this script from there (and not as CGI)?

As an off-topic, I always wonder why don't people 
spend a minute to make their code more readable:

  $ENV{THREADS_FLAG} = q|native|;
  $ENV{JAVA_HOME}    = q|/usr/java|;
  $ENV{LANG}         = q|en_US|;

And why do you use "." and ".." here:

> $ENV{CLASSPATH}=qq|.:..:/opt/WebSphere/CommerceSuite/AdvSvr/lib:/opt/

What is the current directory for a CGI-scipt?

Reply via email to