Announcement

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

  • Temp file error.

    I'm having a problem with a little bit of Code that is:

    Code:
    merge 1:1 week using `A1', nogen
    tempfile A1
    save `A1'
    The result I'm getting in Stata is:

    Code:
    . merge 1:1 week using `A1', nogen //625
    invalid file specification
    r(198);
    I'm a bit clueless why this is happening. tempfiles are used and saved before in this do-File. Is there any way to inspect A1 at this point in the do-file? More importantly: Is there any obvious error in this code, as i tried finding something and just couldn't get to it?

  • #2
    Your error is in code that you're not showing.

    Beforehand you needed to have created the temporary file named A1, and saved in it a dataset containing a variable (containing unique values) called week.

    Why are you creating the temporary file afterward?

    Comment

    Working...
    X