LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 2 Dec 2008 22:47:54 -0200
Reply-To:   Paulo Rodrigo <rodrigo_paulo@YAHOO.COM.BR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Paulo Rodrigo <rodrigo_paulo@YAHOO.COM.BR>
Subject:   Re: Temp files
In-Reply-To:   <2784D1B1E1F39E4C91787CFA76BC7E950168399B@DTSEXEVS01C01.rf01.itservices.ca.gov>
Content-Type:   text/plain; charset=ISO-8859-1

Paul, I don't know if this qualify as a better solution, but he can use cleanwork macro (Unix, Windows) available on SAS install dirs or use the file SAS_Disk_Cleanup_Handler.zip available on http://ftp.sas.com/techsup/download/pc/ to Windows platform. On Unix could be as simple as "rm -rf /workdir" with appropriate permission ^_^.

--

Att: Paulo R. Herculano SAS Consultant +55-11-9226 6618 Skål Thunar!!

On Tue, Dec 2, 2008 at 9:10 PM, Choate, Paul@DDS <pchoate@dds.ca.gov> wrote:

> Hi Ran - > > There's probably something much more elegant out there - but this sort > of code erases inactive SAStemp *folders* (i.e. the folders named like > "\_TD1340\") in XP, given that your work directory is named "work": > > data _null_; > CALL SYMPUT('temppath','27'x||"dir /s/b/a:d "||'22'x|| > substr(pathname("work"),1,length(pathname("work"))-7) > ||'2227'x); > run; > > options noxsync noxwait; > filename dir pipe &temppath; > data _null_; > infile dir; input; > if pathname("work") ne _infile_ then > call execute('%sysexec RD /s/q '||quote(_infile_)); > run; > filename dir; > > You can fire it off from your autoexec at the beginning of a session - > but note that if you crashed and want those files they will be deleted. > > Paul Choate > DDS Data Extraction > (916) 654-2160 > > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ran > S > Sent: Tuesday, December 02, 2008 12:26 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Temp files > > Hi: > > I sometimes have problem with the SAS temporary files. I keep getting > this > message...temp folder is full or damaged. But when I did clear that > folder > manually, it was working fine. Looks like these temp files are not > deleting > when SAS session ends. Is there any code that we can use or write in > autoexec so that when SAS session ends or new starts it clears up temp > files and ready to roll for the new files? > > Thanks! >


Back to: Top of message | Previous page | Main SAS-L page