| Date: | Tue, 27 Jan 2004 16:42:20 +0100 |
| Reply-To: | Ace <b.rogers@VIRGIN.NET> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Ace <b.rogers@VIRGIN.NET> |
| Subject: | Re: Macro to save/restore options |
| Content-Type: | text/plain; charset=us-ascii |
On Tue, 27 Jan 2004 10:30:21 -0500, "Richard A. DeVenezia"
<radevenz@ix.netcom.com> wrote:
>"Chang Y. Chung" <chang_y_chung@HOTMAIL.COM> wrote in message
>news:200401271456.i0REuqQ15611@listserv.cc.uga.edu...
>> Hi,
>>
>> Does anybody have a macro that makes easy to save/restore sas system
>> options? I think I saw something like it somewhere, but could not remember
>> where I did that. I am thinking about doing something like in the below.
>> Thanks in advance.
>>
>> Cheers,
>> Chang
>>
>> %saveOptions;
>> ...
>> temporarily change some options and do something useful
>> ...
>> %restoreOptions;
>
>
>If the saving and restoring can occur in a Proc step (seems likely from your
>code stub), then try
>Proc OPTSAVE and
>Proc OPTLOAD
Damn. And I spent five minutes or more on my answer :-)
--
Ace in Basel - brucedotrogers a.t rochedotcom
|