If the file that is named in a Direct_Output statement already exists then the contents of the existing file are deleted and replaced with whatever data is written to it. To append data to the end of an existing file you should use the DataFlex Append_Output command to open the file. The syntax of the Append_Output command is:
Append_Output [channel {channel-num.}] {file-name}
Where:
Examples of opening files using Append_Output is:
Append_Output sErrorLog
Append_Output Channel 3 "c:\temp\activitylog.txt"