<?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: How to see value of automatic variable in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/551033#M153052</link>
    <description>Not that "%put _AUTOMATIC_;" gives the values of automatic *macro* variables.&lt;BR /&gt;&lt;BR /&gt;You can use&lt;BR /&gt;put _ALL_;&lt;BR /&gt;to print the values of all variables, including automatic variables, available in your data step.</description>
    <pubDate>Mon, 15 Apr 2019 13:27:26 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2019-04-15T13:27:26Z</dc:date>
    <item>
      <title>How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550895#M153003</link>
      <description>&lt;P&gt;I know that automatic variables are dropped at the end of the data step. Is there a way to see it though? Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 16:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550895#M153003</guid>
      <dc:creator>mikepark</dc:creator>
      <dc:date>2019-04-14T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550899#M153006</link>
      <description>&lt;P&gt;Write to the log using put/putlog or assign the value to a new variable&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 16:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550899#M153006</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-14T16:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550900#M153007</link>
      <description>&lt;P&gt;A few ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a PUT statement within the DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put first.state;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can copy the variable to a different DATA step variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;auto1 = first.state;&lt;/P&gt;
&lt;P&gt;auto2 = last.state;&lt;/P&gt;
&lt;P&gt;auto3 = eof;&lt;/P&gt;
&lt;P&gt;auto4 = _n_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will have this new set of variables available in the output data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you ask a more specific questions, you can get a more specific answer.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 16:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550900#M153007</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-14T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550958#M153025</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* From  a blog by Rick Wicklin ; 
%put _AUTOMATIC_;
%put _USER_;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2019 03:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/550958#M153025</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-04-15T03:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/551032#M153051</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 set sashelp.class;
 put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2019 13:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/551032#M153051</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-15T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value of automatic variable in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/551033#M153052</link>
      <description>Not that "%put _AUTOMATIC_;" gives the values of automatic *macro* variables.&lt;BR /&gt;&lt;BR /&gt;You can use&lt;BR /&gt;put _ALL_;&lt;BR /&gt;to print the values of all variables, including automatic variables, available in your data step.</description>
      <pubDate>Mon, 15 Apr 2019 13:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-of-automatic-variable-in-SAS/m-p/551033#M153052</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2019-04-15T13:27:26Z</dc:date>
    </item>
  </channel>
</rss>

