<?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: do loops weekday in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889124#M351262</link>
    <description>&lt;P&gt;Please show the code you have tried, so that we can help you improve it.&amp;nbsp; In addition to the suggestions from others, you might want to use the INTNX function for advancing the date by a year at a time.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Aug 2023 23:15:34 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-08-13T23:15:34Z</dc:date>
    <item>
      <title>do loops weekday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889109#M351254</link>
      <description>&lt;P&gt;Question : Find weekday for every year from 15aug1940 to now(today) ??&lt;/P&gt;&lt;P&gt;output&lt;BR /&gt;August 15, 1940: Thursday&lt;BR /&gt;August 15, 1941: Friday&lt;BR /&gt;August 15, 1942: Saturday&lt;BR /&gt;August 15, 1943: Sunday&lt;BR /&gt;August 15, 1944: Tuesday&lt;BR /&gt;August 15, 1945: Wednesday&lt;BR /&gt;... (continuing for each year up to the current year)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 16:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889109#M351254</guid>
      <dc:creator>112211</dc:creator>
      <dc:date>2023-08-13T16:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: do loops weekday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889111#M351255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446448"&gt;@112211&lt;/a&gt;, you could use the mod function to to get the r&lt;SPAN&gt;emainder from the division of the date (an integer number in SAS) by 7. If the remainder is negative you have to add 7. Each of the seven positive possible remainders correspond to a weekday.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope, this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best, Markus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 16:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889111#M351255</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2023-08-13T16:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: do loops weekday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889116#M351258</link>
      <description>&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0bo5thbfrcab1n1menkqxq2suiv.htm" target="_blank" rel="noopener"&gt;MDY&lt;/A&gt;&amp;nbsp;function to build the SAS dates. Then either use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0ahi8tk3trkv5n173sil9hd7c62.htm" target="_blank" rel="noopener"&gt;WEEKDAY&lt;/A&gt;&amp;nbsp;function to retrieve the weekday in numeric fashion, or use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p16z3pt9h9fdn6n1sxv7lzei34gp.htm" target="_blank" rel="noopener"&gt;DOWNAME&lt;/A&gt;&amp;nbsp;format to display the weekday name.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 17:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889116#M351258</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-13T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: do loops weekday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889124#M351262</link>
      <description>&lt;P&gt;Please show the code you have tried, so that we can help you improve it.&amp;nbsp; In addition to the suggestions from others, you might want to use the INTNX function for advancing the date by a year at a time.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 23:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-weekday/m-p/889124#M351262</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-13T23:15:34Z</dc:date>
    </item>
  </channel>
</rss>

