SET DEBUGOUT Command
Directs debugging output to a file.
Specifies the name of the file to which debugging output is directed. If the file you specify does not exist, it is automatically created. If the file you specify already exists, its contents are overwritten unless you include the ADDITIVE clause.
Issue SET DEBUGOUT TO to stop direction of debugging output to the file and close the file.
Specifies that debugging output is appended to the end of the file specified with FileName.
Debugging output that is directed to the file includes ASSERT messages, output from the DEBUGOUT command, and events that are specified with SET EVENTLIST or in the Event Tracking Dialog Box. See the Event Tracking dialog box topic for more information about specifying events to track interactively.