Consultor Eletrônico



Kbase 20530: OS-APPEND to Null Target File Gives OS-ERROR = 0
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

FACT(s) (Environment):

Progress 4 GL

SYMPTOM(s):

OS-APPEND command silently fails.

OS-APPEND to Null Target File Gives OS-ERROR = 0

CAUSE:

Environment variable does not have a value.

FIX:

This code returns the value of the environment variable "ABC":

OS-APPEND "C:\TEST.TXT" VALUE(OS-GETENV("ABC") + "\TEST2.TXT").

MESSAGE OS-ERROR VIEW-AS ALERT-BOX. /* will return zero */