Kbase P15984: On UNIX: PUT SKIP gives <LF> whereas on windows: <CR><LF>
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/03/2003 |
|
Status: Unverified
SYMPTOM(s):
Text File generated in 4GL on UNIX cannot be used on windows
On windows, the file seems to fit in one single line in notepad
CAUSE:
Expected behavior. A 4GL PUT SKIP generates a <LF> (Line Feed = CHR(10)) on UNIX whereas it makes <CR>+<LF> (CR = CHR(13) = Carriage Return) on windows, because this is the convention on windows!
However, many tools to share files between UNIX and windows usually translate the <LF> in <CR>+<LF> (such as ftp in ASCII mode). The problem is usually seen when a file is binary transferred to windows (such as ftp in binary mode).
FIX:
Transfer/share the file in ASCII mode to windows so it will be translated to windows format. When the sharing tool is definitely based on binary transfers, then you might usePUT CONTROL CHR(13) CHR(10). instead of PUT SKIP.