display result is unexpected

ecl

New Member
i've got a table with several fields, all char.
all fields are filled with something.

when i use following to dump all contents to a textfile

OUTPUT TO VALUE(vFilename).
FOR EACH ...
DISPLAY
<table>.<field1>
<table>.<field2>
<table>.<field3> VIEW-AS EDITOR SIZE 40 BY 1
<table>.<field4> VIEW-AS EDITOR SIZE 40 BY 1
WITH STREAM-IO NO-BOX WIDTH 123.
END.
OUTPUT CLOSE.

the result is unexpected, many of <field4> is not displayed.
When i use PUT statement instead everything is dumped to textfile.

What is wrong with DISPLAY ??

(progress82c)
 
Try using the EXPORT command to output to a file. I do this all the time to dump data to a comma delimited file to examine the contents using Excel. Without knowing more about how you need to use the output data I can't really suggest anything more.
 
EXPORT indeed is fine for comma-separated,
but you need to adjust if you want to print it.
With DISPLAY i try to format the output, then the text file can be printed without adjustment, and even EXCEL will understand import with fixed positions.

The fields where VIEW-AS EDITOR is used contain big chunks of text.

By the way ... i've found a workaround !
If for the first field as editor 'SIZE 40 BY 2' is used everything is displayed!
 
If you are just dumping the data out, why are you using an editor? VIEW-AS-EDITOR why dont you just simply use the FORMAT option? DISP field(n) FORMAT 50??
 
Back
Top