<?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: Days of the week in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506248#M135678</link>
    <description>Sunday is 1.</description>
    <pubDate>Sat, 20 Oct 2018 19:19:01 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-10-20T19:19:01Z</dc:date>
    <item>
      <title>Days of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506246#M135677</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I wanted to double check that 1= Sunday, 2= Monday, etc. because I was able to label the days of the week for the patients' last appointment (i.e. Jane Smith was day 3, Laura Smellner was day 5), but when I used the format weekdate9. to get the actual day it made 3= Monday, 5= Wednesday, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DATA scheduling(drop=bdate);&lt;BR /&gt;input patient $ 1-17 bdate :mmddyy10. lastappt :mmddyy10.;&lt;BR /&gt;Day=weekday(lastappt);&lt;BR /&gt;format bdate lastappt mmddyy10. day weekdate9.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;Jane Smith 10/25/1985 06/15/2010&lt;BR /&gt;Laura Smellner 10/20/1947 06/17/2010&lt;BR /&gt;Jenna Jones 10/23/1964 07/01/2010&lt;BR /&gt;Beth Bonders 10/26/1939 07/14/2010&lt;BR /&gt;Grace Johson 10/19/1958 07/29/2010&lt;BR /&gt;Mary Contrary 10/22/1981 06/30/2010&lt;BR /&gt;Jennifer Palermo 10/21/1953 09/03/2010&lt;BR /&gt;Ann Lewis 10/24/1975 08/15/2010&lt;BR /&gt;Linda Bentner 10/13/1938 09/04/2010&lt;BR /&gt;Francine Scalia 10/14/1963 09/04/2010&lt;BR /&gt;Leah Thill 10/15/1949 08/01/2010&lt;BR /&gt;Caroline Harris 10/16/1968 08/11/2010&lt;BR /&gt;Olivia Knupf 10/17/1972 07/31/2010&lt;BR /&gt;Maya Angelson 10/18/1961 07/17/2010&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 19:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506246#M135677</guid>
      <dc:creator>paperboy22</dc:creator>
      <dc:date>2018-10-20T19:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Days of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506248#M135678</link>
      <description>Sunday is 1.</description>
      <pubDate>Sat, 20 Oct 2018 19:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506248#M135678</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-10-20T19:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Days of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506252#M135681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You use weekday function and it's returns integer that represents day like 1=Sunday 2=Monday etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you format with this day varible with weekdate9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats meaning you getting which day of 4 June 1960 when day=3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest you directly convert lastappt variable,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Day=put(lastappt,weekdate9.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 19:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506252#M135681</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-10-20T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Days of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506254#M135683</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 19:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Days-of-the-week/m-p/506254#M135683</guid>
      <dc:creator>paperboy22</dc:creator>
      <dc:date>2018-10-20T19:49:29Z</dc:date>
    </item>
  </channel>
</rss>

