<?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: Show weekday function result (1) as weekday (Sunday)? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69531#M19984</link>
    <description>have you tried PUT as a function?&lt;BR /&gt;
 Weekday = PUT( date_var, weekdate3. );</description>
    <pubDate>Sun, 06 Feb 2011 07:55:57 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-02-06T07:55:57Z</dc:date>
    <item>
      <title>Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69527#M19980</link>
      <description>Experts:&lt;BR /&gt;
&lt;BR /&gt;
Another beginner question. Reviewing the weekday function this morning. What is the best way to convert the weekday function result to 'Sunday...' instead of showing 1-7?  Every solution I came up with seemed to be too clumsy. One of them was simply a bad idea. I tried to format the weekday result in weekdate3. :-).&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Sat, 05 Feb 2011 20:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69527#M19980</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-02-05T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69528#M19981</link>
      <description>Hi,&lt;BR /&gt;
I am not yet an expert on SAS. Try look on proc format.&lt;BR /&gt;
Warm regards,&lt;BR /&gt;
Vasile</description>
      <pubDate>Sat, 05 Feb 2011 20:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69528#M19981</guid>
      <dc:creator>Vasile01</dc:creator>
      <dc:date>2011-02-05T20:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69529#M19982</link>
      <description>Did you try weekdate9.?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
6    data _null_;&lt;BR /&gt;
7       do date = today() to today()+14;&lt;BR /&gt;
8          put date weekdate9.;&lt;BR /&gt;
9          end;&lt;BR /&gt;
10      run;&lt;BR /&gt;
&lt;BR /&gt;
 Saturday&lt;BR /&gt;
   Sunday&lt;BR /&gt;
   Monday&lt;BR /&gt;
  Tuesday&lt;BR /&gt;
Wednesday&lt;BR /&gt;
 Thursday&lt;BR /&gt;
   Friday&lt;BR /&gt;
 Saturday&lt;BR /&gt;
   Sunday&lt;BR /&gt;
   Monday&lt;BR /&gt;
  Tuesday&lt;BR /&gt;
Wednesday&lt;BR /&gt;
 Thursday&lt;BR /&gt;
   Friday&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sat, 05 Feb 2011 21:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69529#M19982</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-02-05T21:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69530#M19983</link>
      <description>Thanks to you both! &lt;BR /&gt;
My question is not how to format a date value to show the weekday. I was hoping for a shortcut that convert the weekday function results (1-7) to Sun-Sat. Proc Format as Vasile suggested is definitely a solution.</description>
      <pubDate>Sun, 06 Feb 2011 05:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69530#M19983</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-02-06T05:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69531#M19984</link>
      <description>have you tried PUT as a function?&lt;BR /&gt;
 Weekday = PUT( date_var, weekdate3. );</description>
      <pubDate>Sun, 06 Feb 2011 07:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69531#M19984</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-06T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show weekday function result (1) as weekday (Sunday)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69532#M19985</link>
      <description>Great idea. This is the shortcut I was looking for. Thank you.</description>
      <pubDate>Sun, 06 Feb 2011 19:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Show-weekday-function-result-1-as-weekday-Sunday/m-p/69532#M19985</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-02-06T19:43:40Z</dc:date>
    </item>
  </channel>
</rss>

