<?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 Is there a function that will change a date to ISO 8601 calendar week? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63923#M6408</link>
    <description>I have a data table with 1 variable classified by date. I would like to use a function to change the date format so that it complies with the ISO 8601 calendar week. Example follows:&lt;BR /&gt;
&lt;BR /&gt;
Date------SAS Format--ISO 8601&lt;BR /&gt;
2011/1/3--18630-------2011CW0101&lt;BR /&gt;
2011/1/4--18631-------2011CW0102&lt;BR /&gt;
2011/1/5--18632-------2011CW0103&lt;BR /&gt;
2011/1/6--18633-------2011CW0104&lt;BR /&gt;
2011/1/7--18634-------2011CW0105&lt;BR /&gt;
2011/1/8--18635-------2011CW0106&lt;BR /&gt;
2011/1/9--18636-------2011CW0107&lt;BR /&gt;
(the dashes inserted above are for clarity only)&lt;BR /&gt;
&lt;BR /&gt;
The above series progresses on until the last day of 2011 calendar year on 01JAN2012, or 2011CW5207.&lt;BR /&gt;
&lt;BR /&gt;
I searched through the forum and SAS community and couldn’t find any reference to this type of a date/time function.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be greatly appreciated.</description>
    <pubDate>Wed, 19 Jan 2011 00:50:42 GMT</pubDate>
    <dc:creator>PQK</dc:creator>
    <dc:date>2011-01-19T00:50:42Z</dc:date>
    <item>
      <title>Is there a function that will change a date to ISO 8601 calendar week?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63923#M6408</link>
      <description>I have a data table with 1 variable classified by date. I would like to use a function to change the date format so that it complies with the ISO 8601 calendar week. Example follows:&lt;BR /&gt;
&lt;BR /&gt;
Date------SAS Format--ISO 8601&lt;BR /&gt;
2011/1/3--18630-------2011CW0101&lt;BR /&gt;
2011/1/4--18631-------2011CW0102&lt;BR /&gt;
2011/1/5--18632-------2011CW0103&lt;BR /&gt;
2011/1/6--18633-------2011CW0104&lt;BR /&gt;
2011/1/7--18634-------2011CW0105&lt;BR /&gt;
2011/1/8--18635-------2011CW0106&lt;BR /&gt;
2011/1/9--18636-------2011CW0107&lt;BR /&gt;
(the dashes inserted above are for clarity only)&lt;BR /&gt;
&lt;BR /&gt;
The above series progresses on until the last day of 2011 calendar year on 01JAN2012, or 2011CW5207.&lt;BR /&gt;
&lt;BR /&gt;
I searched through the forum and SAS community and couldn’t find any reference to this type of a date/time function.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be greatly appreciated.</description>
      <pubDate>Wed, 19 Jan 2011 00:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63923#M6408</guid>
      <dc:creator>PQK</dc:creator>
      <dc:date>2011-01-19T00:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function that will change a date to ISO 8601 calendar week?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63924#M6409</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
The following link gives you the overview over SAS existing ISO8601 formats: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a003169814.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a003169814.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If this is not enough then you have always the possibility to create your own picture format:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473467.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473467.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Wed, 19 Jan 2011 02:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63924#M6409</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-01-19T02:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function that will change a date to ISO 8601 calendar week?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63925#M6410</link>
      <description>Start by looking at the WEEKV format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
iso 8601 calendar week date format site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
weekv format site:sas.com</description>
      <pubDate>Wed, 19 Jan 2011 13:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63925#M6410</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-01-19T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function that will change a date to ISO 8601 calendar week?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63926#M6411</link>
      <description>Patrick &amp;amp; sbb,&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for the replies!&lt;BR /&gt;
&lt;BR /&gt;
THe WEEKV format suggestion put me in the right direction. In combination with the WEEK(date,'v') function I was able to display dates and sum quantities based on the Mon - Sun calendar week system.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
&lt;BR /&gt;
PDK</description>
      <pubDate>Wed, 02 Feb 2011 11:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-function-that-will-change-a-date-to-ISO-8601-calendar/m-p/63926#M6411</guid>
      <dc:creator>PQK</dc:creator>
      <dc:date>2011-02-02T11:28:15Z</dc:date>
    </item>
  </channel>
</rss>

