Re: Set an environment variable from within a 4GL program?
Posted in 1995
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
jparker@hpbs3645.boi.hp.com (Jack Parker) wrote:
>The thing to keep in mind is, of course, that is if you change the environment
>variable with something like:
> LET cmd_strng = "export DBPATH=//server"
> RUN cmd_strng
>It will work just great, the child process will now know that
>DBPATH="//server". But... the child process has now terminated.
Thats why you need some C code, to reset and export the variable
for the "current" informix process. Trying to do it with an Informix
"run" command will NOT work, for exactly the reason given above by
Jack.
>Hey! My display didn't explode, what gives?
Hmmm... it should have >>>imploded<<<, not exploded...
Of course if you are using a TEK 4014, you may
notice an actual _improvement_ in your display
quality as a result. ;)
------- If you cut here, your display may implode -----------
______________
/\\ ___________\\ This writer's statements are definitive.
\\ \\ \\________ / Recent findings in physics have proven the
\\ \\ \\ / / / universe to be inherently random. If this
\\ \\ \\ / / / writer's statements conflict with reality,
\\ \\ \\/ / / this may well be due to the inherently
\\ \\/ / / random nature of reality itself, rather
James \\ / / than any error on the part of the author.
Fischer\\/_/ jfischer@inmind.com