Kbase P110962: 4GL: OS-GETENV function returns unknown environment variables values (?) .
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/11/2005 |
|
Status: Unverified
SYMPTOM(s):
OS-GETENV function returns unknown environment variables values (?) .
Executing statement similar to:
MESSAGE OS-GETENV("$DLC$")
VIEW-AS ALERT-BOX INFO BUTTONS OK.
on a UNIX platform or
MESSAGE OS-GETENV("%DLC%")
VIEW-AS ALERT-BOX INFO BUTTONS OK.
on a Windows platform.
CAUSE:
The $ or the % symbols should not be passed to the OS-GETENV function as part of the environment variable name.
FIX:
Write the environment variables names without the $ symbols, when using UNIX and without the % symbols when using Windows:
MESSAGE OS-GETENV("DLC")
VIEW-AS ALERT-BOX INFO BUTTONS OK.