Consultor Eletrônico



Kbase P60102: What is OS-GETENV returning
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

GOAL:

What is OS-GETENV returning

GOAL:

How to use the OS-GETENV function

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
Windows NT 32 Intel/Windows 2000

FIX:

OS-GETENV is only returning values for environment variables which are set on the specific machine.

You can simply check if the return value of OS-GETENV("<env-var-name>") is correct by opening a command box and look at the result of the "set" command

For example the command:

set COMPUTERNAME

should return to you the same value as you get with OS-GETENV("COMPUTERNAME").

The Progress 4GL OS-GETENV function can access those envronment variables that were already set when the session Progress started. IT can not access those variables that are set in that same session.