Consultor Eletrônico



Kbase P136006: OS-ERROR returns error code 2 after first execution when not used right after OS command
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Unverified

SYMPTOM(s):

OS-ERROR returns error code 2 after first execution when not used right after OS command

OS-ERROR sets non-zero return value after first execution without using OS related commands

OS-ERROR returns error code 2

FACT(s) (Environment):

OpenEdge 10.1x
All Supported Operating Systems
Progress OpenEdge versions prior to 10.1 do not exhibit this behavior

CAUSE:

Bug# OE00176335

FIX:

OS-ERROR return code should be checked in the code right after OS command, e.g.:

DEFINE VARIABLE iError AS INTEGER NO-UNDO.

OS-COPY aaa.txt bbb.txt .

iError = OS-ERROR.