<?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: Create date variable from week, month, year in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142124#M11338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your week look, it is 25 indicating 25th week of the year or 2 indicating the 2nd week of a month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming its between 1 and 5&lt;/P&gt;&lt;P&gt;something like the following may work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date=mdy(month, 7*(week-1)+1&amp;nbsp;&amp;nbsp; , year);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 17:31:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-06-13T17:31:15Z</dc:date>
    <item>
      <title>Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142123#M11337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have week, month, and year variables and need to create a date variable from these.&amp;nbsp; Suggestions on how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142123#M11337</guid>
      <dc:creator>claireluen</dc:creator>
      <dc:date>2014-06-13T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142124#M11338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your week look, it is 25 indicating 25th week of the year or 2 indicating the 2nd week of a month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming its between 1 and 5&lt;/P&gt;&lt;P&gt;something like the following may work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date=mdy(month, 7*(week-1)+1&amp;nbsp;&amp;nbsp; , year);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142124#M11338</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-13T17:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142125#M11339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is numbered 0 through 52, so 25 indicates the 25th week of the year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142125#M11339</guid>
      <dc:creator>claireluen</dc:creator>
      <dc:date>2014-06-13T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142126#M11340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you like the date to reflect any specific day of the week?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142126#M11340</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-13T17:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142127#M11341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thursdays preferably, but if it is too difficult that way it doesn't particularly matter that much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142127#M11341</guid>
      <dc:creator>claireluen</dc:creator>
      <dc:date>2014-06-13T17:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142128#M11342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weeks can cross months so having a specific day may not be possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142128#M11342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-13T17:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142129#M11343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even just an approximate day would be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;wk 1 = 1/1/14&lt;/P&gt;&lt;P&gt;wk 2 = 1/8/14&lt;/P&gt;&lt;P&gt;wk 3 = 1/15/14&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142129#M11343</guid>
      <dc:creator>claireluen</dc:creator>
      <dc:date>2014-06-13T18:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create date variable from week, month, year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142130#M11344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aligns to the beginning of the week;&lt;/P&gt;&lt;P&gt;date=mdy(1,1,year)+(week-1)*7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;intnx('week', mdy(1,1, year), week, 'middle');&lt;/P&gt;&lt;P&gt;And look at the alignment options for intnx function, ie beginning end, middle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212700.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212700.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-date-variable-from-week-month-year/m-p/142130#M11344</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-13T18:48:41Z</dc:date>
    </item>
  </channel>
</rss>

