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
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?
>