<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reset SAS without restarting SAS???? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965067#M375781</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Let's assume 100 sets of procedures.&amp;nbsp; We want all executed.&amp;nbsp; Want to save the log, output, ODS html for each of the distinct sets, to study later.&lt;BR /&gt;&lt;BR /&gt;For each set of procedures it would be best to start afresh, so no leftovers exist from the previous round.&lt;BR /&gt;&lt;BR /&gt;We could exit SAS between each iteration.&amp;nbsp; Save results.&amp;nbsp; Start SAS again for the next round.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it would be nice if we could do a reset between the iterations, and keep going in one session.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or Proc Printto to write the log starting at a desired point to a different file, ODS HTML or other ODS destination with file/ close to write output to different destination. &lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 17:45:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2025-04-24T17:45:27Z</dc:date>
    <item>
      <title>Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965006#M375762</link>
      <description>&lt;P&gt;Suppose you sit down at your recently-started computer, fire up a SAS session.&amp;nbsp; Before you run those procedures you want to run, look at the computer screen.&amp;nbsp; SAS is clean, log just shows the few introductory items, Output empty, Results empty, Results Viewer empty.&amp;nbsp; All set to go.&lt;BR /&gt;&lt;BR /&gt;Question is:&amp;nbsp; Is there any way to get back to this point without having to exit and restart SAS????&lt;BR /&gt;&lt;BR /&gt;Programmatically, like, reset this, reset that.&amp;nbsp; Presto.&lt;BR /&gt;&lt;BR /&gt;Possible solutions greatly appreciated!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 04:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965006#M375762</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2025-04-24T04:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965007#M375763</link>
      <description>Assuming DMS SAS.&lt;BR /&gt;Restarting a SAS session takes less than a second, so I'm not sure what you want to achieve? Is there something in the current session that you don't want to reset?&lt;BR /&gt;In SAS Studio there's a reset options, but that in turn fires an ENDSAS statement, practically the same as restarting SAS (but in Studio you don't have to close the window).</description>
      <pubDate>Thu, 24 Apr 2025 05:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965007#M375763</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-04-24T05:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965008#M375764</link>
      <description>&lt;P&gt;No, you can't. Just consider 2 questions:&lt;/P&gt;
&lt;P&gt;1. Can you reset all system options to the default value?&lt;BR /&gt;2. How to reset some read-only system macro variable, like syserrortext?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are just talking about very basic condition, file system can be more impossible, what if programmer delete a table in sashelp?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 06:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965008#M375764</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2025-04-24T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965012#M375767</link>
      <description>&lt;P&gt;Let's assume 100 sets of procedures.&amp;nbsp; We want all executed.&amp;nbsp; Want to save the log, output, ODS html for each of the distinct sets, to study later.&lt;BR /&gt;&lt;BR /&gt;For each set of procedures it would be best to start afresh, so no leftovers exist from the previous round.&lt;BR /&gt;&lt;BR /&gt;We could exit SAS between each iteration.&amp;nbsp; Save results.&amp;nbsp; Start SAS again for the next round.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it would be nice if we could do a reset between the iterations, and keep going in one session.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 07:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965012#M375767</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2025-04-24T07:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965035#M375773</link>
      <description>&lt;P&gt;Run them as separate SAS sessions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS/Connect you could do it using SIGNON and RSUBMIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one useful command for this that I have found recently is the&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;resetline;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will reset the line numbers that display in the SAS log back to 1.&amp;nbsp; Example:&lt;/P&gt;
&lt;PRE&gt;135  resetline;
1    proc means data=sashelp.class; run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.

2    resetline;
1    proc means data=sashelp.cars; run;

NOTE: There were 428 observations read from the data set SASHELP.CARS.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 13:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965035#M375773</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-24T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965067#M375781</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Let's assume 100 sets of procedures.&amp;nbsp; We want all executed.&amp;nbsp; Want to save the log, output, ODS html for each of the distinct sets, to study later.&lt;BR /&gt;&lt;BR /&gt;For each set of procedures it would be best to start afresh, so no leftovers exist from the previous round.&lt;BR /&gt;&lt;BR /&gt;We could exit SAS between each iteration.&amp;nbsp; Save results.&amp;nbsp; Start SAS again for the next round.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it would be nice if we could do a reset between the iterations, and keep going in one session.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or Proc Printto to write the log starting at a desired point to a different file, ODS HTML or other ODS destination with file/ close to write output to different destination. &lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 17:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965067#M375781</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-04-24T17:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reset SAS without restarting SAS????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965072#M375783</link>
      <description>&lt;P&gt;I think it's important to define the scope of the reset.&amp;nbsp; To me, "resetting SAS" implies a fresh SAS session (empty work library, no user-created macro variables, no user librefs assigned, etc etc.) .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you really only interested in clearing the log window and results window?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 24 Apr 2025 18:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-SAS-without-restarting-SAS/m-p/965072#M375783</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-04-24T18:36:07Z</dc:date>
    </item>
  </channel>
</rss>

