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 13:21:22 -0700
Reply-To:     "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject:      Re: Is there anyways to save WORK dataset
Comments: To: Abc Unha <abcunha@YAHOO.COM>
In-Reply-To:  A<16FD64291482A34F995D2AF14A5C932C07437E16@MAIL002.prod.ds.russell.com>
Content-Type: text/plain; charset="us-ascii"

One clarification:

The comment mentioned below:

option user=work; * repoint WORK to back to temp when done;

should really say:

option user=work; * repoint non-libref-datasets back to WORK when done;

because WORK is really still there all along. While USER= is actively pointing somewhere else, you can formally still write to WORK. e.g. data ghi; will go to whereever USER is pointing to data work.jkl; even if USER not defaulting to WORK, you can still write to WORK by just specifying work.

Assigning USER= is merely reassigning the default libref when no libref is specified.

Mark

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Terjeson, Mark Sent: Wednesday, May 27, 2009 1:15 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Is there anyways to save WORK dataset

Hi Abc Unha,

Yes, you can repoint work datasets to go to disk if you prefer:

libname mylib 'c:\temp';

* create a permanent dataset to disk ; data mylib.abc; a='permanent dataset to target lib'; run;

* create a temporary dataset ; data def; a='temporary dataset to work space'; run;

* globally re-point datasets that ; * do not have a libref. specified ; * to a permanent folder location. ; option user=mylib; * repoint non-libref-datasets to permanent disk ; data xyz; a='permanent dataset to target lib without libref.'; run;

option user=work; * repoint WORK to back to temp when done;

Hope this is helpful.

Mark Terjeson Investment Business Intelligence Investment Management & Research Russell Investments 253-439-2367

Russell Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Abc Unha Sent: Wednesday, May 27, 2009 12:59 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Is there anyways to save WORK dataset

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