Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Ajay Chitale — — source: Informix-list mailing list archive (1991-1998)
In article <3kfsor$9a4@news.informix.com>, proberts@lynx.informix.com (Paul Roberts) writes:
|> TIPASQB (this is probably a silly question but):
|>
|> Can I set an environment variable from within a 4GL program and have
|> it be `effective' in the subsequent running of the program?
|>
<snip>
|> but this seems rather ugly. Is there a function that will allow
|> me to set the value of the environment variable within the current shell?
|>
|> Thanks ...
|>
|> Paul
|>
|>
|>
I don't think there is any easy way out. Informix does have a function
to test the value of an environment variable (fgl_getenv). However there
is no provision to set an env. variable. All you can do is link your
4gl code with a 'c' routine which will set your environment as per your
needs.
Hope this helps.
Drop me a line if you are unfamiliar with 'c' and '4gl' linking.
--
ajay chitale
+email: achit@puma.miel.mot.com
+voice: 91-80-2278545
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.