Kbase P21418: 4GL/ABL: Error (98) executing OUTPUT TO statement
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/4/2010 |
|
Status: Verified
SYMPTOM(s):
4GL/ABL: Error (98) executing OUTPUT TO statement
** Unable to open file: <file-name>. Errno=2. (98)
** Unable to open file: <file-name>. Errno=9. (98)
** Unable to open file: <file-name>. Errno=13. (98)
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
CAUSE:
1. The error: ** Unable to open file: <file-name>. Errno=2. (98) can be generated by the OUTPUT statement if file name is specified using a relative path and the directory of the file name is not a valid relative path of the working directory. For example:
OUTPUT TO "DirectoryName\file.txt". or OUTPUT TO file.t"xt.
This error can also be generated if the target of the OUTP UT statement is a directory and not a file. For example:
OUTPUT TO "SomeName". Where some name is a name of a directory.
2. The error: ** Unable to open file: <file-name>. Errno=9. (98) can be generated by the OUTPUT statement if the target file name contains a question mark character. For example:
OUTPUT TO ?ab.txt.
or
OUTPUT TO ab?cd.txt.
or
OUTPUT TO abc<some_string>.txt.
3. The error: ** Unable to open file: <file-name>. Errno=13. (98) can be generated by the OUTPUT statement if the target file name contains a double quote character. For example:
OUTPUT TO file.txt". or OUTPUT TO file.t"xt.
This error can also be generated if the target of the OUTPUT statement is a directory and not a file. For example:
OUTPUT TO "SomeName". Where some name is a name of a directory.
FIX:
Ensure that the file has a valid operating system file name. For details on valid file names, refer to the specific operating system technical documentation.