fgl_setenv()

 

The fgl_setenv()  function allows the environment value setting and modification. The syntax of the function invocation is as follows:

 

fgl_setenv(var_name, var_value)

 

where:

·         var_name  = a STRING standing for an environment variable name,

·         var_value = a STRING standing for the value of the var_name to be set.

Usage

 

Here is an example of the fgl_setenv function calling:

 

CALL fgl_setenv("LYCIA_DB_DRIVER", "informix")

Be careful when passing the NULL value to an environment variable as this will affect your application a little bit different depending on the operation system it is being executed by.

On the NULL value setting on Windows, the variable is removed from the environment. And On Unix, the same action results in an empty value setting for the variable specified as var_name.

 

fgl_getenv()

fgl_putenv()