<?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 Incrementing a date by 2 days within a defined period of time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544511#M150597</link>
    <description>&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;I'm stuck... I need to identify a sample of records spaced by 2 days beginning on 1 April 1968 and ending on 31 July 1974. My initial approach of taking the days 1,3,5... obviously doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset contains the date (SAS format) as well as the month, day and year as individual variables. Ideally I would like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;t_date&amp;nbsp; &amp;nbsp; &amp;nbsp; flag&lt;/P&gt;&lt;P&gt;3/1/1968&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3/2/1968&amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;3/3/1968&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 11:08:32 GMT</pubDate>
    <dc:creator>Lyn2</dc:creator>
    <dc:date>2019-03-20T11:08:32Z</dc:date>
    <item>
      <title>Incrementing a date by 2 days within a defined period of time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544511#M150597</link>
      <description>&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;I'm stuck... I need to identify a sample of records spaced by 2 days beginning on 1 April 1968 and ending on 31 July 1974. My initial approach of taking the days 1,3,5... obviously doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset contains the date (SAS format) as well as the month, day and year as individual variables. Ideally I would like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;t_date&amp;nbsp; &amp;nbsp; &amp;nbsp; flag&lt;/P&gt;&lt;P&gt;3/1/1968&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3/2/1968&amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;3/3/1968&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 11:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544511#M150597</guid>
      <dc:creator>Lyn2</dc:creator>
      <dc:date>2019-03-20T11:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Incrementing a date by 2 days within a defined period of time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544523#M150600</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do date='01mar1968'd to '31jul1974'd;
flag=mod(date+1,2);
 output;
end;
format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 12:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544523#M150600</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-20T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incrementing a date by 2 days within a defined period of time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544626#M150631</link>
      <description>&lt;P&gt;Thank you, this worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 16:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Incrementing-a-date-by-2-days-within-a-defined-period-of-time/m-p/544626#M150631</guid>
      <dc:creator>Lyn2</dc:creator>
      <dc:date>2019-03-20T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

