Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • A way to delete output stored in outreg2 without using replace?

    Dear all,

    I was wondering if there is a way to delete output stored in outreg2 without using "outreg2 using data, replace". Perhaps, a separate code/command? Thanks.

    Best,
    Jae


  • #2
    If you want to delete the file created by outreg2, Example 2 in the output of help outreg2 shows the use of
    Code:
    capture erase myfile.txt
    where myfile.txt is the full name, including extension, of the output file created by outreg2. The erase command is what deletes the file, and preceding it with capture (which help outreg2 abbreviates to cap) ensure that if the file does not already exist, the "file not found" error message will be ignored and not cause the do-file to terminate.

    Comment

    Working...
    X