<?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: Help w/ First Day of SAS Week in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126259#M25734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Look up the intnx function.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SAS week starts on the Jan 1 of your 20XX then use week as your interval with the wk as the number of increments and 'start' as the alignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 21:17:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-01-15T21:17:30Z</dc:date>
    <item>
      <title>Help w/ First Day of SAS Week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126258#M25733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a collection of dates of the form 20xx-wk where wk is a week number produced by the SAS week function week( ,'u').&amp;nbsp; What I'd like to do is convert my list to ordinary SAS dates corresponding to the first date of the week.&amp;nbsp; That is, let f be a function such that f(20xx,wk) = 'nnMON20xx'd where nnMON is the first date of SAS week 20xx-wk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have hunted around in the date function doc and don't see an obvious way to do this.&amp;nbsp; Would like to solve my problem w/o stepping out of proc SQL if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 21:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126258#M25733</guid>
      <dc:creator>jackw19</dc:creator>
      <dc:date>2013-01-15T21:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help w/ First Day of SAS Week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126259#M25734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Look up the intnx function.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SAS week starts on the Jan 1 of your 20XX then use week as your interval with the wk as the number of increments and 'start' as the alignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 21:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126259#M25734</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-15T21:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help w/ First Day of SAS Week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126260#M25735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the WEEKU informat is what you need.&amp;nbsp; You will need to change the - to W.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;20&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = cats(year(today()),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'W'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,put(week(today(),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'u'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;z2.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; y = input(x,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;weeku.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x= y=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;date9.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 22:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-w-First-Day-of-SAS-Week/m-p/126260#M25735</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-15T22:12:50Z</dc:date>
    </item>
  </channel>
</rss>

