<?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: getting week number from middle of year to next middle of year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/getting-week-number-from-middle-of-year-to-next-middle-of-year/m-p/356216#M83509</link>
    <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
  format date date9.;
  do date='1mar2016'd to '01mar2017'd;
    output;
  end;
run;

data want;
  set have;
  week=intck("week",'01mar2016'd,date);
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 03:47:17 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-05-05T03:47:17Z</dc:date>
    <item>
      <title>getting week number from middle of year to next middle of year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-week-number-from-middle-of-year-to-next-middle-of-year/m-p/356190#M83501</link>
      <description>&lt;P&gt;Hi, is there a creative way to get week number of a dataset that has a process date that&amp;nbsp;starts from March2016 to March2017.. so the frist week of March2016 is 1 and so on until 52 of the last week of March2017.&amp;nbsp; Not necessarily March, any month of the year, and if I only have 6 months then would have week 1 to week 26...etc.&amp;nbsp;&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 01:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-week-number-from-middle-of-year-to-next-middle-of-year/m-p/356190#M83501</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2017-05-05T01:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting week number from middle of year to next middle of year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-week-number-from-middle-of-year-to-next-middle-of-year/m-p/356216#M83509</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
  format date date9.;
  do date='1mar2016'd to '01mar2017'd;
    output;
  end;
run;

data want;
  set have;
  week=intck("week",'01mar2016'd,date);
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 03:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-week-number-from-middle-of-year-to-next-middle-of-year/m-p/356216#M83509</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-05T03:47:17Z</dc:date>
    </item>
  </channel>
</rss>

