I am working on a program that contains a loop that estimates the same model on several sets of dependent variables. Within the loop are the following instructions that open text-file report and append the results from each set of dependent variables to the report.
open(append) copy "filename.txt"
report(action = show , unit = copy )
When I revise my program and re-run it, the new report is appended to the old report. I get around this by deleting the report file before re-running the program. Is there a RATS command that will replace the old report with the new, or delete the old report before creating a new one with the same name?
