<?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 date function in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526048#M5047</link>
    <description>&lt;P&gt;I understood that you want to add observations for expected but missing month, but what rules are modifying Amount?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 13:59:05 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-01-10T13:59:05Z</dc:date>
    <item>
      <title>SAS date function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526036#M5043</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No &amp;nbsp; &amp;nbsp;Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Amount&lt;/P&gt;&lt;P&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01APR2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01MAY2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01JUN2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300&lt;/SPAN&gt;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01AUG2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/SPAN&gt;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01OCT2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01NOV2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01DEC2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01JAN2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01FEB2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01MAR2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01APR2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01MAY2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01JUN2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01SEP2016&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01OCT2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; 300&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01DEC2016&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need the last year month value against the current one. Few sequence in the months column is missing like 01JUL2015, 01SEP2015 in the year 2015 and 01JUL2016, 01JUL2016 and 01NOV2016 , 01JAN2017, 01FEB2017, 01MAR2017 in the year 2016. I need Current year month-last year month ex (01Apr2016-01Apr2015)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need the below results&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No &amp;nbsp; &amp;nbsp;Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Amount &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;LY_Amount&lt;/P&gt;&lt;P&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01APR2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01MAY2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01JUN2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01JUL2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;01AUG2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01SEP2015&lt;/SPAN&gt;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01OCT2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01NOV2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01DEC2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01JAN2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01FEB2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;01MAR2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01APR2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;300 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01MAY2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01JUN2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01JUL2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01AUG2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01SEP2016&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01OCT2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01NOV&lt;/SPAN&gt;&lt;SPAN&gt;2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01DEC2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01JAN2017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;BR /&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01FEB2017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411 Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp; &amp;nbsp;01MAR2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is just one set of group variables (2411 Marine Cargo &amp;nbsp; 1001) from so many in my entire data. &amp;nbsp;I need the missing months in the column month for that particular and also the group variable values which is 2411, Marine Cargo, 1001 for the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can then try lag function, lag12 for the same or intnx function or some sort of join.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526036#M5043</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-01-10T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526048#M5047</link>
      <description>&lt;P&gt;I understood that you want to add observations for expected but missing month, but what rules are modifying Amount?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526048#M5047</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-01-10T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526099#M5051</link>
      <description>&lt;P&gt;The amount should be zero for missing months. It should have blank values. and the character or group values should be same like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2411&amp;nbsp; Marine Cargo &amp;nbsp; &amp;nbsp;1001 &amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526099#M5051</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-01-10T16:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526287#M5070</link>
      <description>&lt;P&gt;Fine. And now please explain why you have&lt;/P&gt;
&lt;PRE&gt;No   Type            ID      Month             Amount
2411 Marine Cargo    1001    01MAY2015         200&lt;/PRE&gt;
&lt;P&gt;in the first table, and no value for Amount in the same observation in the second table.&lt;/P&gt;
&lt;PRE&gt;No   Type            ID      Month             Amount
2411 Marine Cargo    1001    01MAY2015&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 05:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526287#M5070</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-01-11T05:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526295#M5071</link>
      <description>&lt;P&gt;Please ignore thats typo error. In short I need month comparison from last year based on the same granular grouping.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 07:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-function/m-p/526295#M5071</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-01-11T07:03:16Z</dc:date>
    </item>
  </channel>
</rss>

