<?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: proc expand, too many warnings causes SAS to error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143104#M38069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong, the option nonotes does not work with the entire file.&amp;nbsp; Same issue, I added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc printto log= "location/filename.log";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but I'd much rather have another solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 18:03:31 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2014-12-09T18:03:31Z</dc:date>
    <item>
      <title>proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143100#M38065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just learned about proc expand, I have the code set up to run and get my desired results but the file seems too big and it's not working.&amp;nbsp; I think my syntax is off. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached what I have and what I'm looking for, followed by my proc expand syntax, followed by the warnings I'm seeing in the log. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm first using the proc expand to add missing rows in a time series file, then I'm deleting the missing row and preceding row.&amp;nbsp; If there is a better solution I'm open to that also, but would still like to learn what I'm doing wrong with proc expand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You Very Much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 15:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143100#M38065</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143101#M38066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added options nonotes; before and options notes; after the expand and it runs very smoothly but I'm still open to any other suggestions for the task, or corrections for the expand procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 15:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143101#M38066</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T15:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143102#M38067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: (Previous version had a typo=&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Input date:MMDDYY8. Time_Key ID $; Format date MMDDYY8.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Datalines;&lt;BR /&gt;10/01/07 20071031 A&lt;BR /&gt;09/01/07 20070930 A&lt;BR /&gt;08/01/07 20070831 A&lt;BR /&gt;06/01/07 20070630 A&lt;BR /&gt;05/01/07 20070531 A&lt;BR /&gt;04/01/07 20070430 A&lt;BR /&gt;10/01/07 20071031 B&lt;BR /&gt;09/01/07 20070930 B&lt;BR /&gt;08/01/07 20070831 B&lt;BR /&gt;06/01/07 20070630 B&lt;BR /&gt;05/01/07 20070531 B&lt;BR /&gt;04/01/07 20070430 B&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Sort Data=test;&lt;BR /&gt;&amp;nbsp; By ID date;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Expand Data=Test Out=TestII To=Month Method=None;&lt;BR /&gt;&amp;nbsp; ID date;&lt;BR /&gt;&amp;nbsp; By ID;&lt;BR /&gt;Run; &lt;/P&gt;&lt;P&gt;Data TestIII (Drop=Time_Key_L);&lt;BR /&gt;&amp;nbsp; Obs=_N_+1;&lt;BR /&gt;&amp;nbsp; Set TestII End=Eof;&lt;BR /&gt;&amp;nbsp; By ID;&lt;BR /&gt;&amp;nbsp; If not Eof Then Set TestII (Keep=Time_Key Rename=(Time_Key=Time_Key_L)) Point=Obs;&lt;BR /&gt;&amp;nbsp; Else Call Missing (Time_Key_l);&lt;BR /&gt;&amp;nbsp; If Last.ID Then Time_Key_L=1;&lt;BR /&gt;&amp;nbsp; If Missing (Time_Key_L) or Missing (Time_Key) Then Delete;&lt;BR /&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 17:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143102#M38067</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-09T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143103#M38068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this version the values for id and by are reversed, it works the same but I'm still getting all of the warnings, log to big for sas.&amp;nbsp; If I process too much it errors out with a pop up, no error to the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 17:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143103#M38068</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143104#M38069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong, the option nonotes does not work with the entire file.&amp;nbsp; Same issue, I added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc printto log= "location/filename.log";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but I'd much rather have another solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143104#M38069</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143105#M38070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wait. Could it be that simply need to fill in the "Time_Key" variable. If I run the program below, I get the same Warnings you get. I think you need to insert the modify step, then it sould work:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Input date:MMDDYY8. Time_Key ID $; Format date MMDDYY8.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Datalines;&lt;BR /&gt;10/01/07 . A&lt;BR /&gt;09/01/07 . A&lt;BR /&gt;10/01/07 20071031 B&lt;BR /&gt;09/01/07 20070930 B&lt;BR /&gt;08/01/07 20070831 B&lt;BR /&gt;06/01/07 20070630 B&lt;BR /&gt;05/01/07 20070531 B&lt;BR /&gt;04/01/07 20070430 B&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;BR /&gt;/*&lt;BR /&gt;Data test;&lt;BR /&gt;&amp;nbsp; Modify test;&lt;BR /&gt;&amp;nbsp; If Missing (Time_Key) Then Do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time_Key=IntNx('month',Date,1,'same')-1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time_Key=Year(Time_Key)*10000+Month(Time_key)*100+Day(Time_Key); * this depends if time_key is a number or a date;&lt;BR /&gt;&amp;nbsp; End;&lt;BR /&gt;Run;&lt;BR /&gt;*/&lt;BR /&gt;Proc Sort Data=test;&lt;BR /&gt;&amp;nbsp; By ID date;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Expand Data=Test Out=TestII To=Month Method=None;&lt;BR /&gt;&amp;nbsp; ID date;&lt;BR /&gt;&amp;nbsp; By ID;&lt;BR /&gt;Run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING: The variable Time_Key has only 0 nonmissing observations, which is too few to apply the conversion method. The result &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; series is set to missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143105#M38070</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-09T18:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143106#M38071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the time_key doesn't have any missing values, there are many missing values in this table but none for the id or the date.&amp;nbsp;&amp;nbsp; Because of the word method I am looking up what 'method=' options there are, That's just a guess though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143106#M38071</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T18:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143107#M38072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I correctly understand what you are trying to do, then I think that proc expand might be overkill. Does the following accomplish what you want?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input date:MMDDYY8. Time_Key ID $; Format date MMDDYY8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Datalines;&lt;/P&gt;&lt;P&gt;10/01/07 20071031 A&lt;/P&gt;&lt;P&gt;09/01/07 20070930 A&lt;/P&gt;&lt;P&gt;08/01/07 20070831 A&lt;/P&gt;&lt;P&gt;06/01/07 20070630 A&lt;/P&gt;&lt;P&gt;05/01/07 20070531 A&lt;/P&gt;&lt;P&gt;04/01/07 20070430 A&lt;/P&gt;&lt;P&gt;10/01/07 20071031 B&lt;/P&gt;&lt;P&gt;09/01/07 20070930 B&lt;/P&gt;&lt;P&gt;08/01/07 20070831 B&lt;/P&gt;&lt;P&gt;06/01/07 20070630 B&lt;/P&gt;&lt;P&gt;05/01/07 20070531 B&lt;/P&gt;&lt;P&gt;04/01/07 20070430 B&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by ID date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=next_date);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test ( firstobs = 2 keep = date rename = (date = next_date) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs = 1 drop = _all_ );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next_date = ifn(&amp;nbsp; last.ID, (.), next_date );&lt;/P&gt;&lt;P&gt;&amp;nbsp; if intck('month',date,next_date) lt 2;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143107#M38072</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-09T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143108#M38073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the solution has already been posted. The only other way I could think about is to create a complete "date-dataset" then merge it with the original data and finally remove the missing values and their predecessor. But of course this is much longer than the solution above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Input date:MMDDYY8. Time_Key ID $ ; Format date MMDDYY8.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Datalines;&lt;BR /&gt;12/01/07 20071031 A&lt;BR /&gt;09/01/07 20070930 A&lt;BR /&gt;08/01/07 20070831 A&lt;BR /&gt;06/01/07 20070630 A&lt;BR /&gt;05/01/07 20070531 A&lt;BR /&gt;04/01/07 20070430 A&lt;BR /&gt;10/01/07 20071031 B&lt;BR /&gt;09/01/07 20070930 B&lt;BR /&gt;08/01/07 20070831 B&lt;BR /&gt;06/01/07 20070630 B&lt;BR /&gt;05/01/07 20070531 B&lt;BR /&gt;04/01/07 20070430 B&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Sort Data=Test;&lt;BR /&gt;&amp;nbsp; By ID Date;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Data TestII;&lt;BR /&gt;&amp;nbsp; Format First_Last Date9. ;&lt;BR /&gt;&amp;nbsp; Do i=1 By 1&amp;nbsp; Until (Last.ID);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Test;&lt;BR /&gt; By ID;&lt;BR /&gt; If First.ID Then Do; First_Last=Date; Output; End;&lt;BR /&gt; Else If Last.ID Then Do; First_Last=Date; Output; End;&lt;BR /&gt;&amp;nbsp; End;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Sort Data=TestII;&lt;BR /&gt;&amp;nbsp; By ID First_Last;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc Expand Data=TestII Out=TestIII (Keep=First_Last ID Rename=(First_Last=Date)) To=Month Method=None;&lt;BR /&gt;&amp;nbsp; ID First_Last;&lt;BR /&gt;&amp;nbsp; By ID;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Data Test;&lt;BR /&gt;&amp;nbsp; Merge Test TestIII (in=in3);&lt;BR /&gt;&amp;nbsp; By ID Date;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Data TestIV (Drop=Time_Key_L);&lt;BR /&gt;&amp;nbsp; Obs=_N_+1;&lt;BR /&gt;&amp;nbsp; Set Test End=Eof;&lt;BR /&gt;&amp;nbsp; By ID;&lt;BR /&gt;&amp;nbsp; If not Eof Then Set Test (Keep=Time_Key Rename=(Time_Key=Time_Key_L)) Point=Obs;&lt;BR /&gt;&amp;nbsp; Else Call Missing (Time_Key_l);&lt;BR /&gt;&amp;nbsp; If Last.ID Then Time_Key_L=1;&lt;BR /&gt;&amp;nbsp; If Missing (Time_Key_L) or Missing (Time_Key) Then Delete;&lt;BR /&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 20:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143108#M38073</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-09T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143109#M38074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur, That is nothing I would have ever come up with, but yes, that is exactly what I want.&amp;nbsp; Put together very nicely.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143109#M38074</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-09T21:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143110#M38075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur and user24feb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help on this.&amp;nbsp; I was thinking about this last night and using thoughts from both of your solutions came up with another idea.&amp;nbsp; I'm hoping you can poke a hole in this or confirm that this will work too.&amp;nbsp; What are your thoughts on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input new_date:MMDDYY8. acct_full_acct_id $; Format new_date MMDDYY8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Datalines;&lt;/P&gt;&lt;P&gt;10/01/07 A&lt;/P&gt;&lt;P&gt;09/01/07 A&lt;/P&gt;&lt;P&gt;08/01/07 A&lt;/P&gt;&lt;P&gt;06/01/07 A&lt;/P&gt;&lt;P&gt;05/01/07 A&lt;/P&gt;&lt;P&gt;04/01/07 A&lt;/P&gt;&lt;P&gt;10/01/07 B&lt;/P&gt;&lt;P&gt;09/01/07 B&lt;/P&gt;&lt;P&gt;08/01/07 B&lt;/P&gt;&lt;P&gt;06/01/07 B&lt;/P&gt;&lt;P&gt;05/01/07 B&lt;/P&gt;&lt;P&gt;04/01/07 B&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by acct_full_acct_id descending new_date ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testII;&lt;/P&gt;&lt;P&gt;format ldate mmddyy8.;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;by acct_full_acct_id;&lt;/P&gt;&lt;P&gt;ldate = lag(new_date);&lt;/P&gt;&lt;P&gt;if first.acct_full_acct_id then do;&lt;/P&gt;&lt;P&gt;ldate = .;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;if intck('month',new_date,ldate) lt 2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 14:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143110#M38075</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-10T14:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143111#M38076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't poke any holes in it and it is more efficient than the solution I had proposed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could simplify the code a tad. e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testII (drop=ldate);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by acct_full_acct_id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ldate = ifn(first.acct_full_acct_id,.,lag(new_date));&lt;/P&gt;&lt;P&gt;&amp;nbsp; if intck('month',new_date,ldate) lt 2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143111#M38076</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-10T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand, too many warnings causes SAS to error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143112#M38077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome,&amp;nbsp; Thank you for checking.&amp;nbsp; I like the ifn/ifc function that is new to me.&amp;nbsp; I always appreciate your thoughtful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand-too-many-warnings-causes-SAS-to-error/m-p/143112#M38077</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-10T15:25:30Z</dc:date>
    </item>
  </channel>
</rss>

