<?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 will not retain in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29526#M5568</link>
    <description>Thanks.  To be honest,  even though I've been looking at the code, trying to figure the problem out, I did not even notice that statement was still there!!</description>
    <pubDate>Mon, 31 May 2010 19:55:57 GMT</pubDate>
    <dc:creator>steve_citi</dc:creator>
    <dc:date>2010-05-31T19:55:57Z</dc:date>
    <item>
      <title>RETAIN will not retain</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29524#M5566</link>
      <description>Can't figure out why the retain statement will not hold the value of holdbroke or brokefound.&lt;BR /&gt;
Can someone explain why? &lt;BR /&gt;
&lt;BR /&gt;
The idea of the code is to capture the month when delbnd is greater than or equal to 3, and place it on ever subsequent record for the customer.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data forbearance3;&lt;BR /&gt;
     retain holdbroke;&lt;BR /&gt;
     retain brokefound 0;&lt;BR /&gt;
     holdbroke=.;&lt;BR /&gt;
     set forbearance2;&lt;BR /&gt;
         by cust_no asofmonth;&lt;BR /&gt;
         if first.cust_no then do; brokefound=0; conbrokemon=.;  end;&lt;BR /&gt;
&lt;BR /&gt;
         if brokefound=0 then do;&lt;BR /&gt;
            if delbnd&amp;gt;=3 then do;&lt;BR /&gt;
                                      holdbroke=asofmonth;&lt;BR /&gt;
                                      brokefound=1;&lt;BR /&gt;
                                      end;&lt;BR /&gt;
            else;&lt;BR /&gt;
                   &lt;BR /&gt;
            end;&lt;BR /&gt;
&lt;BR /&gt;
         if brokefound=1 then do;&lt;BR /&gt;
                                conbrokemon=holdbroke;&lt;BR /&gt;
                                end;&lt;BR /&gt;
         run;</description>
      <pubDate>Mon, 31 May 2010 19:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29524#M5566</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2010-05-31T19:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN will not retain</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29525#M5567</link>
      <description>You have code that assigns a missing value with every DATA step pass.  Suggest you might want to add this line of code for self-debugging and some desk-checking of your program (add multiple occurences and assign unique nn to keep track where your program is generating the diagnostic messages to the SAS log):&lt;BR /&gt;
&lt;BR /&gt;
PUTLOG '&amp;gt;DIAG-nn' / _ALL_;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
data step programming retain statement site:sas.com</description>
      <pubDate>Mon, 31 May 2010 19:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29525#M5567</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-31T19:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN will not retain</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29526#M5568</link>
      <description>Thanks.  To be honest,  even though I've been looking at the code, trying to figure the problem out, I did not even notice that statement was still there!!</description>
      <pubDate>Mon, 31 May 2010 19:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29526#M5568</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2010-05-31T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: RETAIN will not retain</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29527#M5569</link>
      <description>Using the PUTLOG (new with SAS v9, previously used PUT with FILE LOG;) will help with the condition - it helps me all the time and I've been using SAS for 25+ years.&lt;BR /&gt;
&lt;BR /&gt;
Scott</description>
      <pubDate>Mon, 31 May 2010 20:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RETAIN-will-not-retain/m-p/29527#M5569</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-31T20:27:20Z</dc:date>
    </item>
  </channel>
</rss>

