<?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: Date Mashing in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Mashing/m-p/379412#M24685</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community. &amp;nbsp;First, I advise to post anything you need to, test data and code directly into the post, I wouldnt download Office files from the net as security risk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what you post, I question the need to transpose the data to find missing periods:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  if current_date ne lag(current_date)+1 then flag="Y";
run;
&lt;/PRE&gt;
&lt;P&gt;So in this example, the lag lookks back one record and if its not 1 day more than the lag value sets a flag. &amp;nbsp;No need to transpose to do this.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 14:44:09 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-07-26T14:44:09Z</dc:date>
    <item>
      <title>Date Mashing</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Mashing/m-p/379405#M24684</link>
      <description>&lt;P&gt;I have effective and expiration dates in a dataset where I have transposed them so all for the key I have created are in a single row in the dataset.&amp;nbsp; I want to be able to compare all of the dates to see if there is a break in the dates.&amp;nbsp; My end result should be if I can combine the dates in the row to make one effective date and one expiration date.&amp;nbsp; I can't use MIN(Eff_Dt) or MAX(Exp_Dt) because I might miss breaks in the dates.&lt;/P&gt;&lt;P&gt;I have attached a few examples in an excel spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Mashing/m-p/379405#M24684</guid>
      <dc:creator>Verlea</dc:creator>
      <dc:date>2017-07-26T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Mashing</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Mashing/m-p/379412#M24685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community. &amp;nbsp;First, I advise to post anything you need to, test data and code directly into the post, I wouldnt download Office files from the net as security risk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what you post, I question the need to transpose the data to find missing periods:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  if current_date ne lag(current_date)+1 then flag="Y";
run;
&lt;/PRE&gt;
&lt;P&gt;So in this example, the lag lookks back one record and if its not 1 day more than the lag value sets a flag. &amp;nbsp;No need to transpose to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Mashing/m-p/379412#M24685</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-26T14:44:09Z</dc:date>
    </item>
  </channel>
</rss>

