Martin - Thanks. The SetEnv in the httpd.conf did the trick.
I had been setting the needed environment variables at the beginning of the my CGI script, but the ODBC driver apparently is run in the with the initial CGI environment, not with one that has been modified. Many thanks. Regards, Sam Carmalt