Greetings,
I am sorry, I don`t get what you are trying to do or why.
You are wanting to output data to a file. Yet you are concered with the display and formating?? The output is NOT displayed by Progress / OE, you are passing it onto the OS by outputing to a file.
You are half way there...