Kbase 15393: How to embed TAB character in output file -- PUT UNFORMATTED
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to embed TAB character in output file -- PUT UNFORMATTED
If a PROGRESS application is used to generate a file to be used as
input to another application which requires <TAB>-delimited data,
you can use PUT UNFORMATTED to embed the <TAB> character as follows:
OUTPUT TO outfile.txt.
PUT UNFORMATTED field1 "~011" field2 ...
OUTPUT CLOSE.
Alternatively, you can store the octal string as a character variable:
DEFINE VARIABLE a-tab AS CHAR INIT "~011".
OUTPUT TO outfile.txt.
PUT UNFORMATTED field1 a-tab field2 ...
OUTPUT CLOSE.
Progress Software Technical Support Note # 15393