*** COPIED FROM: >>>Usenet/comp.databases 33841 rolandm@scn.de(1530)27Nov96 09:41 c33785*
Posted in 1996
Article: 33841 of comp.databases.informix cix.compulink.co.uk!news.compulink.co.uk!btnet-feed2!btnet!newsfeed.intern etmci.com!tezcat!feed1.news.erols.com!howland.erols.net!EU.net!main.German y.EU.net!Bielefeld.Germany.EU.net!news.sni.de !news.mch.sni.de!news.sbs.de!news.fth.sbs.de!news Newsgroups: comp.databases.informix Subject: Re: Where to set INFORMIXSERVER for httpd server Organization: Siemens Business Services Lines: 24 References: <57fsda$fn7@cybernet.cse.fau.edu> NNTP-Posting-Host: 130.201.50.46 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01Gold (Win95; I) To: system PRIVILEGED account <barton@aura.irm.fau.edu> system PRIVILEGED account wrote: > > In writing a cgi program in 4GL I've run into one hitch: > > Program stopped at "mailist.4gl", line number 26. > 4GL run-time error number -25560. > Environment variable INFORMIXSERVER must be set. > > Question is: > > How do I get this INFORMIXSERVER variable set either from > the httpd daemon or having it included at compile? > > Or any practical working solution ... If you're using the Informix-4GL CGI-Kit, the answer is: There is a function along with this kit allowing you to set environment variables. LET retstatus = i4gl_setenv("INFORMIXSERVER=<whatever>") retstatus != 0 means, the statement failed. Regards, Roland