Desktop productivity for business analysts and programmers

My Work library keeps clearing, Sas remaking new _TD folders

Reply
Occasional Contributor
Posts: 5

My Work library keeps clearing, Sas remaking new _TD folders

 

 

Hello, 

 

I am currently testing some new code which requires me to re-run a chunk of proc sql codes several times in a couple of hours. 

 

What Ive found is that after the second time of running a code within 10 minutes, all my files in the Work library is empty. 

 

After some investigation, Ive found that in my temp SAS folder, SAS has been making a new _TD directory  everytime i rerun the code.

 

Does anyone know whay this is happening?  Any way i can force SAS to use the one temp library?

 

Thanks

Grand Advisor
Posts: 17,325

Re: My Work library keeps clearing, Sas remaking new _TD folders

Are you running this in batch? Or some other way?



How are you running your code?

 

You can temporarily create a USER library and by default SAS will automatically use that as the 'WORK' library.

Esteemed Advisor
Posts: 5,198

Re: My Work library keeps clearing, Sas remaking new _TD folders

If you need to reconnect to the workspace server for some reason, your saswork library will lost.
Data never sleeps
Grand Advisor
Posts: 10,210

Re: My Work library keeps clearing, Sas remaking new _TD folders

If you want data to persist across SAS sessions then you want a a permanent library and assume responsibility for cleaning out "temporary" data when no longer needed. Then you need to make sure the permanent library is available in the new session or after reconnect to any server involved.

Ask a Question
Discussion stats
  • 3 replies
  • 108 views
  • 0 likes
  • 4 in conversation