Kbase P9745: Unable to correct the format of the OUTPUT TO file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/2/2010 |
|
Status: Verified
SYMPTOM(s):
Unable to correct the format of the OUTPUT TO file
OUTPUT TO opsys-file statement does not correctly output the labels as expected and as the OUTPUT TO TERMINAL statement does
Incorrect output:
Name----------------- City----------------- Country---------------
Lift Line Skiing Boston USA
Correct output:
Name City Country
-------------------- -------------------- --------------------
Lift Line Skiing Boston USA
Running code similar to:
DEFINE STREAM stream1.
OUTPUT STREAM stream1 TO D:\PROGRESS\wrk91b\mytest.txt.
FIND FIRST customer NO-LOCK.
FORM
NAME FORMAT "x(20)"
City FORMAT "x(20)"
Country FORMAT "x(20)"
WITH FRAME myFrameName DOWN NO-BOX WIDTH 132.
DISPLAY STREAM stream1
Name
City
Country
WITH FRAME myFrameName.
OUTPUT STREAM stream1 CLOSE.
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
CAUSE:
The STREAM-IO option is NOT included of the Frame Phrase for the frame used to write the file.
FIX:
Include the STREAM-IO option of the Frame Phrase either in the FORM or the DISPLAY statement or both:
DEFINE STREAM stream1.
OUTPUT STREAM stream1 TO D:\PROGRESS\wrk91b\mytest.txt.
FIND FIRST customer NO-LOCK.
FORM
NAME FORMAT "x(20)"
City FORMAT "x(20)"
Country FORMAT "x(20)"
WITH FRAME myFrameName DOWN NO-BOX WIDTH 132 STREAM-IO.
DISPLAY STREAM stream1
Name
City
Country
WITH FRAME myFrameName.
OUTPUT STREAM stream1 CLOSE.