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 (May 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 27 May 2009 15:14:01 -0500
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: Is there anyways to save WORK dataset
Comments: To: Abc Unha <abcunha@yahoo.com>
In-Reply-To:  <200905271958.n4RHMCqH026997@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1

Assuming you want this to be a temporary thing, if you assign the USER libref to a directory, one-level referenced datasets will be stored there, instead of in a temporary 'WORK' location. However, if you use WORK.(dsetname), it will not change, and will still be temporarily assigned.

Put this in a file: data test1; set sashelp.class; run; libname user 'c:\test\'; data test2; set sashelp.class; run;

and then submit that via batch... you should find c:\test\ contains test2.sas7bdat.

I think there are system options that control whether the work directory is deleted on close, but i'm not sure how good of an idea it is to play with those options.

-Joe

On Wed, May 27, 2009 at 2:58 PM, Abc Unha <abcunha@yahoo.com> wrote:

> I am running SAS in batch mode. It has hundreds of dataset that is writing > into work directory. At the end it creates one dataset that will be > written in permanent libaray. > I need to debug some steps and I was wondering If there is a way to > permanently store work datasets? >


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