<?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 Question: How to use do loops for increment date values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205667#M51208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May someone help me figure out how to use do loops to get the increment date values?&lt;/P&gt;&lt;P&gt;I need to make a data set contains five years worth of data for each holiday by using do loops.&amp;nbsp; The results should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/13&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/14&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/15&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/16&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/17&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/13&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/14&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/16 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/17 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Datalines:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;----+----1----+----2----+----3----+----4----+----5----+----6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/13&amp;nbsp; New Year's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/13&amp;nbsp; Martin Luther King's Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/02/13&amp;nbsp; Groundhog Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/12/13&amp;nbsp; Lincoln's&lt;BR /&gt;Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/14/13&amp;nbsp; Valentine's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/18/13&amp;nbsp; President's Day and Washington's Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;03/17/13&amp;nbsp; St. Patrick's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;03/29/13&amp;nbsp; Good Friday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;04/01/13&amp;nbsp; April Fool's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;04/01/13&amp;nbsp; Easter Monday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/05/13&amp;nbsp; Cinco de Mayo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/12/13&amp;nbsp; Mother's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/27/13&amp;nbsp; Memorial Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;06/14/13&amp;nbsp; Flag Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;06/16/13&amp;nbsp; Father's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;07/04/13&amp;nbsp; Independence Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;09/02/13&amp;nbsp; Labor Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/14/13&amp;nbsp; Columbus Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;10/31/13&amp;nbsp; Halloween&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/11/13&amp;nbsp; Veteran's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/28/13&amp;nbsp; Thanksgiving&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;12/25/13&amp;nbsp; Christmas Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;12/31/13&amp;nbsp; New Year's Eve&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 17:42:25 GMT</pubDate>
    <dc:creator>sky299</dc:creator>
    <dc:date>2015-04-28T17:42:25Z</dc:date>
    <item>
      <title>Question: How to use do loops for increment date values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205667#M51208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May someone help me figure out how to use do loops to get the increment date values?&lt;/P&gt;&lt;P&gt;I need to make a data set contains five years worth of data for each holiday by using do loops.&amp;nbsp; The results should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/13&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/14&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/15&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/16&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New Year's Day&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/17&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/13&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/14&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/15 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/16 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martin Luther King's Birthday&amp;nbsp; &lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/17 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Datalines:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;----+----1----+----2----+----3----+----4----+----5----+----6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/01/13&amp;nbsp; New Year's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;01/21/13&amp;nbsp; Martin Luther King's Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/02/13&amp;nbsp; Groundhog Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/12/13&amp;nbsp; Lincoln's&lt;BR /&gt;Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/14/13&amp;nbsp; Valentine's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;02/18/13&amp;nbsp; President's Day and Washington's Birthday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;03/17/13&amp;nbsp; St. Patrick's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;03/29/13&amp;nbsp; Good Friday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;04/01/13&amp;nbsp; April Fool's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;04/01/13&amp;nbsp; Easter Monday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/05/13&amp;nbsp; Cinco de Mayo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/12/13&amp;nbsp; Mother's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;05/27/13&amp;nbsp; Memorial Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;06/14/13&amp;nbsp; Flag Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;06/16/13&amp;nbsp; Father's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;07/04/13&amp;nbsp; Independence Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;09/02/13&amp;nbsp; Labor Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/14/13&amp;nbsp; Columbus Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;10/31/13&amp;nbsp; Halloween&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/11/13&amp;nbsp; Veteran's Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;11/28/13&amp;nbsp; Thanksgiving&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;12/25/13&amp;nbsp; Christmas Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;12/31/13&amp;nbsp; New Year's Eve&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205667#M51208</guid>
      <dc:creator>sky299</dc:creator>
      <dc:date>2015-04-28T17:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question: How to use do loops for increment date values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205668#M51209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some holidays it will be easy.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data holidays;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length holiday $ 40;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; format date mmyydd10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do year=2013 to 2017;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; holiday="Christmas Day";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date = mdy(12, 25, year);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; holiday="New Year's Eve";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date = mdy(12, 31, year);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But many of the holidays that you mention will not fall on the same day of the year each time.&amp;nbsp; In fact, Good Friday is sometimes in March and sometimes in April.&amp;nbsp; You will first have to find the rules that determine the date for each holiday.&amp;nbsp; No programming is involved here ... just understanding the rules for what you are trying to create. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you know the rules, you will need to understand how SAS stores dates, and you will need to understand a few date-related functions (such as MDY illustrated here).&amp;nbsp; The calculations inside the DO loop that determine DATE will become more complex, using a combination of tools.&amp;nbsp; For example, Thanksgiving always falls on the fourth Thursday of November.&amp;nbsp; You might code something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;holiday="Thanksgiving";&lt;/P&gt;&lt;P&gt;begin_Nov = mdy(11, 1, year);&lt;/P&gt;&lt;P&gt;date = begin_Nov + (5 - weekday(Begin_Nov)) + 21;&lt;/P&gt;&lt;P&gt;if weekday(Begin_Nov) &amp;gt; 5 then date = date + 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have some research and some studying to do!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 18:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205668#M51209</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-28T18:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question: How to use do loops for increment date values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205669#M51210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the "holiday" function. That will handle the logic for a good deal of what you have in your list, but not all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 19:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-How-to-use-do-loops-for-increment-date-values/m-p/205669#M51210</guid>
      <dc:creator>cmepdx</dc:creator>
      <dc:date>2015-04-28T19:21:54Z</dc:date>
    </item>
  </channel>
</rss>

