<?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: RETAIN statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277714#M55796</link>
    <description>&lt;P&gt;Its never a redundancy, I would consider it explict versus implicit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the sum statement, it includes an implicit retain, but expliclity declaring that retain isn't a redundancy in my opinion it's just an explicit declaration so the user knows ahead of time that it will be retained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In all other cases other than implicit the retain statement is required if you want to retain the value across rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm actually having a hard time understanding the rationale behind&amp;nbsp;question, maybe you can expand on what you're looking for if it's understanding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its for an answer to a test question, it's a bad question IMO.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:44:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-06-15T23:44:15Z</dc:date>
    <item>
      <title>RETAIN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277708#M55792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please give an example or two of when a&amp;nbsp;RETAIN statement is a redundancy and when it is a necessity?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277708#M55792</guid>
      <dc:creator>dataMart87</dc:creator>
      <dc:date>2016-06-15T23:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277714#M55796</link>
      <description>&lt;P&gt;Its never a redundancy, I would consider it explict versus implicit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the sum statement, it includes an implicit retain, but expliclity declaring that retain isn't a redundancy in my opinion it's just an explicit declaration so the user knows ahead of time that it will be retained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In all other cases other than implicit the retain statement is required if you want to retain the value across rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm actually having a hard time understanding the rationale behind&amp;nbsp;question, maybe you can expand on what you're looking for if it's understanding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its for an answer to a test question, it's a bad question IMO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277714#M55796</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-15T23:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277750#M55812</link>
      <description>&lt;P&gt;retain is redundant in :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
array a a1 (0);
retain a1;
set sashelp.class end=done;
a1 = a1 + 1;
if done then put a1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277750#M55812</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-16T03:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277833#M55840</link>
      <description>&lt;P&gt;All variables that come from a SAS data set are automatically retained. &amp;nbsp;So RETAIN is redundant when the variable(s) named come from a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other cases, such as the one PGStats mentioned.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/277833#M55840</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-06-16T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/280106#M56553</link>
      <description>&lt;P&gt;Are there cases where a variable does not come from a SAS, and a RETAIN is not redundant?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 00:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-statement/m-p/280106#M56553</guid>
      <dc:creator>dataMart87</dc:creator>
      <dc:date>2016-06-25T00:49:06Z</dc:date>
    </item>
  </channel>
</rss>

