<?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: SAS Temporary Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279805#M56443</link>
    <description>&lt;P&gt;There are a couple of possibilities, both subject to this "feature":&amp;nbsp; once the DATA step ends, those variables no longer exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possibility:&amp;nbsp; add PUT statements in the DATA step that write the variables to the log.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if _n_ &amp;lt; 20 then put city&amp;nbsp; state zip&amp;nbsp; first.city last.city first.state last.state first.zip last.zip;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility:&amp;nbsp; copy the variables, and store the copies in the data set.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first_state = first.state;&lt;/P&gt;
&lt;P&gt;last_state = last.state;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can examine them after the DATA step is complete.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 19:21:29 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-06-23T19:21:29Z</dc:date>
    <item>
      <title>SAS Temporary Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279784#M56442</link>
      <description>&lt;P&gt;How can I display/output/view the temporary variables SAS creates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;by city state zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ouput&lt;/P&gt;&lt;P&gt;city&amp;nbsp; state zip&amp;nbsp; first.city last.city first.state last.state first.zip last.zip&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 18:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279784#M56442</guid>
      <dc:creator>SharonO</dc:creator>
      <dc:date>2016-06-23T18:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Temporary Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279805#M56443</link>
      <description>&lt;P&gt;There are a couple of possibilities, both subject to this "feature":&amp;nbsp; once the DATA step ends, those variables no longer exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possibility:&amp;nbsp; add PUT statements in the DATA step that write the variables to the log.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if _n_ &amp;lt; 20 then put city&amp;nbsp; state zip&amp;nbsp; first.city last.city first.state last.state first.zip last.zip;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility:&amp;nbsp; copy the variables, and store the copies in the data set.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first_state = first.state;&lt;/P&gt;
&lt;P&gt;last_state = last.state;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can examine them after the DATA step is complete.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279805#M56443</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-06-23T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Temporary Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279858#M56450</link>
      <description>&lt;P&gt;As a learning exercise&amp;nbsp;you can put the entire PDF and observations into an associative array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2008/cc/CC08.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug/2008/cc/CC08.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Temporary-Variables/m-p/279858#M56450</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-06-23T21:16:58Z</dc:date>
    </item>
  </channel>
</rss>

