<?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: WEEKVw. format with numeric output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204079#M50862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't create a new variable, keeping it in a date form allows you use date functions further on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format date weekv5.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 19:31:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-07-15T19:31:29Z</dc:date>
    <item>
      <title>WEEKVw. format with numeric output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204078#M50861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;There is a date variable, containing different dates from 2000 to 2015, in my dataset. I need to group the observation by week. So I wrote the following code to generate the weekly values:&lt;/P&gt;&lt;P&gt;data new; set old;&lt;/P&gt;&lt;P&gt;weekly_date=put(date,weekv5.); run;&lt;/P&gt;&lt;P&gt;The reason for using &lt;SPAN style="text-decoration: underline;"&gt;weekv5. &lt;/SPAN&gt;is that I need to know the year and the week of each date.&lt;/P&gt;&lt;P&gt;The problem is that the outcome of the above code is in character format, but I need to compare the weekly_date, for example keep the observation with weekly_date greater than specific time. To do that, I think I need weekly_date should be in numeric format. How can I fix it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204078#M50861</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2015-07-15T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKVw. format with numeric output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204079#M50862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't create a new variable, keeping it in a date form allows you use date functions further on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format date weekv5.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204079#M50862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-15T19:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKVw. format with numeric output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204080#M50863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WEEKVw-format-with-numeric-output/m-p/204080#M50863</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2015-07-15T19:36:21Z</dc:date>
    </item>
  </channel>
</rss>

