<?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: about weekdatew. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762424#M241408</link>
    <description>Thank you for your help.</description>
    <pubDate>Thu, 19 Aug 2021 01:32:48 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2021-08-19T01:32:48Z</dc:date>
    <item>
      <title>about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762403#M241392</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CCA;
b = '2Jan1583'd;
run;
proc print data = CCA;
format  b weekdate31.;
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1629330182074.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62709i8BB1A243E4B2F3DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1629330182074.png" alt="tianerhu_0-1629330182074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;why it is 'NOV'&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 23:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762403#M241392</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-18T23:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762404#M241393</link>
      <description>&lt;P&gt;It's not?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran your code and this is what I get in SAS ODA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table" aria-label="Data Set WORK.CCA"&gt;&lt;CAPTION aria-label="Data Set WORK.CCA"&gt;&amp;nbsp;&lt;/CAPTION&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;b&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;Sunday, January 2, 1583&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 23:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762404#M241393</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-18T23:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762406#M241395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It's not?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran your code and this is what I get in SAS ODA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table" aria-label="Data Set WORK.CCA"&gt;&lt;CAPTION aria-label="Data Set WORK.CCA"&gt;&amp;nbsp;&lt;/CAPTION&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;b&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;Sunday, January 2, 1583&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Same with SAS 9.4.4&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 00:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762406#M241395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-19T00:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762408#M241396</link>
      <description>&lt;P&gt;I am sorry . the year is not 1583 , is 1582 , the following is the revised code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CCA;
b = '1Jan1582'd;
run;
proc print data = CCA;
format  b weekdate31.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1629334228318.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62710iCDEA24509F44957D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1629334228318.png" alt="tianerhu_0-1629334228318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 00:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762408#M241396</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-19T00:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762413#M241399</link>
      <description>&lt;P&gt;Okay. I see the same as you. But why are you using a date from the 1500s?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762413#M241399</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-19T01:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762415#M241400</link>
      <description>I just want to try .  Thank you for your help.</description>
      <pubDate>Thu, 19 Aug 2021 01:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762415#M241400</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-19T01:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762416#M241401</link>
      <description>&lt;P&gt;Okay. If you use different years like 1982 or 2003, it won't show 'NOV' at the beginning.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762416#M241401</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-19T01:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762417#M241402</link>
      <description>yes, you are right.&lt;BR /&gt;From 1582.1.1---1582.1.9, it displays the wrong value .</description>
      <pubDate>Thu, 19 Aug 2021 01:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762417#M241402</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-19T01:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762419#M241404</link>
      <description>&lt;P&gt;Well, the good news is I feel like it is pretty unlikely that you would ever work with date values from the 1500s loll.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762419#M241404</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-19T01:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762421#M241406</link>
      <description>yes, i agree with you.&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762421#M241406</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-19T01:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762422#M241407</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268447"&gt;@tianerhu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am sorry . the year is not 1583 , is 1582 , the following is the revised code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CCA;
b = '1Jan1582'd;
run;
proc print data = CCA;
format  b weekdate31.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1629334228318.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62710iCDEA24509F44957D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1629334228318.png" alt="tianerhu_0-1629334228318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation on dates: &lt;/P&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="p1wj0wt2ebe2a0n1lv4lem9hdc0v" class="xis-topic"&gt;
&lt;DIV id="n1hq98rwxstsjhn1hrf5tdyuzsrx" class="xis-subTopic"&gt;
&lt;DIV id="p1imbftw232n2mn1u4q7r18pj6xi" class="xis-topicContent"&gt;
&lt;DIV id="n06ezbqm54ie9bn1ft9lppuul8c5" class="xis-paragraph"&gt;
&lt;DIV class="xis-listTermDef"&gt;
&lt;DIV id="p1dffeup2x1nlen1d8x361y7rrfa" class="xis-termDefPair"&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;SAS can perform calculations on dates ranging from A.D. November 1582 to A.D. 19,900.&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;In other words, none of the functions such as determining the day of week are really guaranteed to work before Nov 1582 reliably.&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;Try this for some interesting results in Jan 1582.&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;
&lt;PRE&gt;data CCA;
 do b = '1Jan1582'd to '15Nov1582'd ;
   output;
 end;
run;
proc print data = CCA;
format  b weekdate31.;
run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762422#M241407</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-19T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: about weekdatew.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762424#M241408</link>
      <description>Thank you for your help.</description>
      <pubDate>Thu, 19 Aug 2021 01:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-weekdatew/m-p/762424#M241408</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-19T01:32:48Z</dc:date>
    </item>
  </channel>
</rss>

