Announcement

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

  • Problem with reshape long --> "Error I/O error writing .dta file [...]"

    Hi everyone,

    I'm trying to do a reshape long in order to plot more easily certain types of graphs.
    However, I'm getting the following error:

    Code:
    reshape long h_, i(id fecha_consumo_2) j(hours)
    I/O error writing .dta file
        Usually such I/O errors are caused by the disk or file system being
        full.
    r(693);
    Any suggestions to solve this issue please?
    It is true that the data in hand is really big, but that's the first time that I see these type of messages.

    Thank you.
    Michael

  • #2
    Try with a subset of the data; if the error disappears, it is very likely that you are indeed running out of disk space. I have no idea how to fix that except to get more disk space.

    Comment


    • #3
      Hi daniel klein:

      Thank you very much for your answer.
      I will try what you're saying.

      Michael

      Comment


      • #4
        -rehsape- does save temporary files to disk during the transformation. Another possibility to consider is that you may have two drives on your computer, one large drive with ample space where you work with your datasets, and the other, typically smaller drive, to hold your operating system and program installations. In a Windows setting, this could be a D:\ and C:\ drive, respectively. If that's the case, you can change Stata's temporary directory (which will be on C:\ by default) to a larger drive with more space. The instructions are here. This could solve your problem.

        Comment


        • #5
          tolong does not use temporary files, ssc install tolong.

          Comment

          Working...
          X