Announcement

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

  • Error code for "File already exists"

    Dear All, this is probably to Stata developers again.

    When saving the file as PDF with putpdf save "mygraphs.pdf" I am getting:

    Code:
    C:\temp\mygraphs.pdf already exists
    you must specify the replace option
    invalid syntax
    r(198);
    
    end of do-file
    
    r(198);
    This is indeed the case, the file exists, and I didn't specify the replace option. But why is the code 198? Not 602 as for other Stata commands?
    It would be good to have it consistent with e.g. save or other Stata commands that save files.


    Thank you, Sergiy Radyakin

    PS: Stata 16.0/Windows

Working...
X