Kbase P68041: The importing of the ASCII 26 character into 4GL fails.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/18/2004 |
|
Status: Unverified
FACT(s) (Environment):
Progress 8.x
FACT(s) (Environment):
Progress 9.x
FACT(s) (Environment):
Windows
SYMPTOM(s):
Importing of the ASCII 26 character into 4GL fails.
Importing of the HEX 1A character into 4GL fails.
CAUSE:
The ASCII 26 (or HEX 1A) character is (CTRL+Z) on windows, and when the file is opened in text mode, CTRL+Z is treated as the end-of-file indicator by the OS during the read call.
FIX:
Use the BINARY option for the INPUT statement. The BINARY option allows the input to be read directly without any conversion or interpretation. For example:
INPUT FROM file.txt BINARY
instead of
INPUT FROM file.txt.