Kbase P65880: INPUT-OUTPUT THROUGH returns unexpected results.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/03/2010 |
|
Status: Verified
SYMPTOM(s):
INPUT-OUTPUT THROUGH returns unexpected results.
Pathname is read back into 4GL code instead of expected return code.
The executable in the INPUT-OUTPUT through statement is in the working directory.
Working directory is set with a UNC reference.
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows NT 32 Intel/Windows 2000
CAUSE:
INPUT-OUPUT THROUGH uses the command parser set in the OS COMSPEC environment variable. Usually, this is CMD.EXE.
However, Windows' CMD command parser does not fully support UNC references to an executable and in this case throws an error starting with the UNC path.
The executable specified in the INPUT-OUTPUT through does not run, and instead the 4GL client will read the part of the error message generated by the OS.
FIX:
Reference the working directory using a non-UNC reference.
If the executable is stored on a remote file system, the remote directory should be mapped to a drive letter.