Announcement

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

  • error r(603) when trying to save a local macro

    I´m using stata 13 on a windows 8 plataform. I have 87 variables and 219,688 observations.
    I´m trying to use local command and save it later, but stata keeps saying that the file could not be oppened.
    Here is the command i´m using and the error i´m getting

    local filename="output/summary/"+"EAandMF_"+"$timep"

    . save "`filename'", replace
    (note: file output/summary/EAandMF_QTR.dta not found)
    file output/summary/EAandMF_QTR.dta could not be opened
    r(603);

    I googled this error and saw somethings about antivirus. I shut it down, but still not working. I also tryed to put stata to seelp for several minute before give the save command, but didn´t work either.

    Does anyone know how to deal with this error?

  • #2
    This is between you and your computer. There is no obvious reason to me why output/summary/EAandMF_QTR.dta could not be saved so long as you are referring to a directory or folder that exists (we can't tell) and have write permissions there (ditto).

    Comment


    • #3
      Are you sure you have write privileges for directory output/summary? Or if you are working on a network, the problem may be that somebody else has it open, so it is locked.

      Another post that crossed in cyberspace with Nick's, and giving similar advice.

      Comment


      • #4
        Thanks for the replies.

        I´ll give a closer look to my machine.

        Comment


        • #5
          By the way, your command attempts to save a file. There is no sense in which it "saves" the local macro which includes the filename.

          Comment

          Working...
          X