<?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 Clear variable values during a SAS session in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66400#M18974</link>
    <description>Hi can anyone let me know how to clear variable values during a SAS session without closing the session. &lt;BR /&gt;
&lt;BR /&gt;
Thanks and Regards&lt;BR /&gt;
Yuvraj</description>
    <pubDate>Sat, 22 Aug 2009 21:04:22 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-08-22T21:04:22Z</dc:date>
    <item>
      <title>Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66400#M18974</link>
      <description>Hi can anyone let me know how to clear variable values during a SAS session without closing the session. &lt;BR /&gt;
&lt;BR /&gt;
Thanks and Regards&lt;BR /&gt;
Yuvraj</description>
      <pubDate>Sat, 22 Aug 2009 21:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66400#M18974</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-22T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66401#M18975</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Use %SYMDEL "Deletes the specified variable or variables from the macro global symbol table."&lt;BR /&gt;
&lt;BR /&gt;
i hope it help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Sat, 22 Aug 2009 22:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66401#M18975</guid>
      <dc:creator>BrunoSilva</dc:creator>
      <dc:date>2009-08-22T22:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66402#M18976</link>
      <description>Thanks Bruno for the suggestion ,&lt;BR /&gt;
but I am looing for something which can be used to Re-intialize all the variables in an SAS session to NULL values.</description>
      <pubDate>Sat, 22 Aug 2009 22:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66402#M18976</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-22T22:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66403#M18977</link>
      <description>SAS maintains a view called SASHELP.VMACRO, which you can use/reference to generate %LET statements for this purpose.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 23 Aug 2009 13:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66403#M18977</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-23T13:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66404#M18978</link>
      <description>Thank you scott, I checked the Macro and it gave me all the Automatic variables and their values.&lt;BR /&gt;
As suggested by you, we can use a %LET statement and assign NULL values to them.&lt;BR /&gt;
&lt;BR /&gt;
but isn't there any thing that can do this automatically without using the %LET statement.&lt;BR /&gt;
&lt;BR /&gt;
--Thanks&lt;BR /&gt;
Yuvraj</description>
      <pubDate>Sun, 23 Aug 2009 14:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66404#M18978</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-23T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66405#M18979</link>
      <description>Just to clarify your question again, please -- you are using SAS (either interactively or batch) and at some point in your application processing you want SAS to change all of your SAS MACRO VARIABLES to be BLANK (essentially no value), correct?  I know of no SAS feature/function to convert all current, user-defined SAS macro variables to blank.&lt;BR /&gt;
&lt;BR /&gt;
Scott  Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 23 Aug 2009 15:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66405#M18979</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-23T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66406#M18980</link>
      <description>I wasn't sure too of any feature that would do it but they asked me the same question in the interview.

Message was edited by: yuvi</description>
      <pubDate>Sun, 23 Aug 2009 16:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66406#M18980</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-23T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66407#M18981</link>
      <description>Your reference to "clear variable values" could be considered somewhat ambiguous, as I eluded to.  The term "variable values" could either mean SAS dataset variables or SAS macro variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 23 Aug 2009 17:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66407#M18981</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-23T17:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66408#M18982</link>
      <description>Is this what you mean?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data delete;&lt;BR /&gt;
   set sashelp.vmacro;&lt;BR /&gt;
   where scope eq: 'G' and name ne: 'SYS';&lt;BR /&gt;
   run;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   set delete;&lt;BR /&gt;
   call symdel(name);&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 23 Aug 2009 19:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66408#M18982</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-08-23T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66409#M18983</link>
      <description>I guess this would solve the question of clearing the Macro variable values during an SAS session.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Scott and data_null_ for your help

Message was edited by: yuvi</description>
      <pubDate>Sun, 23 Aug 2009 20:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66409#M18983</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-23T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable values during a SAS session</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66410#M18984</link>
      <description>As was stated in an early reply, %SYMDEL can be used to delete one or more "global" macro variable - it does not blank out macro variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 23 Aug 2009 20:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clear-variable-values-during-a-SAS-session/m-p/66410#M18984</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-23T20:19:35Z</dc:date>
    </item>
  </channel>
</rss>

