<?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 Require dates in between in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597219#M16106</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of dates with Level and location wise,so i want require dates between below dates.Please help out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 09:28:21 GMT</pubDate>
    <dc:creator>Shyamkumar</dc:creator>
    <dc:date>2019-10-17T09:28:21Z</dc:date>
    <item>
      <title>Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597219#M16106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of dates with Level and location wise,so i want require dates between below dates.Please help out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597219#M16106</guid>
      <dc:creator>Shyamkumar</dc:creator>
      <dc:date>2019-10-17T09:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597221#M16108</link>
      <description>&lt;P&gt;So DT is equal to 02OCT... in your fist obs and 06OCT... in the second obs. You then want three observations in between with the 3. 4. and 5. oft Oct, correct?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597221#M16108</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-17T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597224#M16111</link>
      <description>&lt;P&gt;Please post data in usable form and the expected result with that data.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597224#M16111</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-10-17T09:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597229#M16112</link>
      <description>yes sir</description>
      <pubDate>Thu, 17 Oct 2019 09:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597229#M16112</guid>
      <dc:creator>Shyamkumar</dc:creator>
      <dc:date>2019-10-17T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597237#M16117</link>
      <description>&lt;P&gt;Ok. Do you have a SAS/ETS license?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597237#M16117</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-17T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Require dates in between</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597239#M16118</link>
      <description>&lt;P&gt;Here is one way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input LEVEL1 $ LOCATION_PL_EMP_MASTER $ 7-16 DT :datetime17.;
format DT datetime17.;
infile datalines4 dlm='|';
datalines;
India|Hyderabad |02Oct2019 0:00:00
India|Hyderabad |06Oct2019 0:00:00
India|Hyderabad |08Oct2019 0:00:00
India|Hyderabad |13Oct2019 0:00:00
India|Mumbai    |02Oct2019 0:00:00
India|Mumbai    |03Oct2019 0:00:00
India|Mumbai    |04Oct2019 0:00:00
India|Mumbai    |05Oct2019 0:00:00
India|Mumbai    |06Oct2019 0:00:00
India|Mumbai    |08Oct2019 0:00:00
India|Mumbai    |10Oct2019 0:00:00
India|Mumbai    |11Oct2019 0:00:00
India|Mumbai    |12Oct2019 0:00:00
India|Mumbai    |13Oct2019 0:00:00
India|Mumbai    |14Oct2019 0:00:00
India|Mumbai    |15Oct2019 0:00:00
India|Mumbai    |16Oct2019 0:00:00
India|Mumbai    |17Oct2019 0:00:00
India|Pune      |02Oct2019 0:00:00
India|Pune      |06Oct2019 0:00:00
India|Pune      |07Oct2019 0:00:00
India|Pune      |08Oct2019 0:00:00
India|Pune      |11Oct2019 0:00:00
India|Pune      |12Oct2019 0:00:00
India|Pune      |13Oct2019 0:00:00
India|Vijayawada|02Oct2019 0:00:00
India|Vijayawada|03Oct2019 0:00:00
India|Vijayawada|06Oct2019 0:00:00
India|Vijayawada|08Oct2019 0:00:00
India|Vijayawada|13Oct2019 0:00:00
;

data want(drop=_:);
    do until (last.LOCATION_PL_EMP_MASTER);
        set have;
        by LOCATION_PL_EMP_MASTER notsorted;
        if first.LOCATION_PL_EMP_MASTER then _from=DT;
        if last.LOCATION_PL_EMP_MASTER  then _to=DT;
    end;

    do DT=_from to _to by 86400;
        output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Require-dates-in-between/m-p/597239#M16118</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-17T10:27:31Z</dc:date>
    </item>
  </channel>
</rss>

