Announcement

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

  • How to delete tempfiles produced by preserve manually?

    Hi, I have a do file that loops over a lot of large datasets and saves subsets of each dataset. In this process, I use preserve and restore several times.

    Now the script stopped running because files could not be written to disk. I figured out that the system drive containing the temp folder was filled up by the tempfiles created by preserve - even though I used restore, not before moving on to the next dataset.

    I understand that these tempfiles will be removed automatically when the do file is finished or I break it's execution. But that is too late. So I am wondering how to delete these tempfiles manually other than deleting all ST*.tmp files in my tempfolder. I.e. is there a way to get the name of the tempfile from the preserve or restore commands? The documentation does not say anything about this...

  • #2
    Can be closed. I restructured my code a little such that I do not need to preserve at the end of the loop. Then, the issue is obsolete.

    Comment


    • #3
      Thank you for posting your solution for the benefit of others who may someday find this topic when they encounter a similar problem.

      Comment

      Working...
      X