<?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: SAS DATES in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89115#M25419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. I got it. I have used put function and forgot to rerun the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the trouble&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 18:12:56 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-05-29T18:12:56Z</dc:date>
    <item>
      <title>SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89108#M25412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;How can i extracct the year from&lt;/P&gt;&lt;P&gt;1)date10.&amp;nbsp; (&lt;STRONG&gt;2012-11-20&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using substring or is there any other logic??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want &lt;STRONG&gt;2012&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89108#M25412</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89109#M25413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the value is an actual SAS date with format date10. , or actually any format,&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;year = year(datevariablename);&lt;/P&gt;&lt;P&gt;There are functions to pull month, day of month, day of week, quarter as well from the date values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89109#M25413</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-05-29T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89110#M25414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks so much for the information&lt;/P&gt;&lt;P&gt;I have the datevariablename as numeric&lt;/P&gt;&lt;P&gt;when i do&lt;/P&gt;&lt;P&gt;year=year( datevariablename) i get year variable as charecter.How is that happening? i was expecting year variable to be numeric too since the parent was numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89110#M25414</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T17:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89111#M25415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you made a mistake somewhere.&lt;/P&gt;&lt;P&gt;Post your full code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89111#M25415</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-29T17:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89112#M25416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;DATE beow is numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data WANT;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;year=year(DATE);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89112#M25416</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89113#M25417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run this:&lt;/P&gt;&lt;P&gt;proc contents data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then post the results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89113#M25417</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-05-29T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89114#M25418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely, YEAR is already in your data set before you started.&amp;nbsp; So you can't change it to numeric.&amp;nbsp; But you could drop it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set have (drop=year);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; year = year(date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89114#M25418</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-05-29T17:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89115#M25419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. I got it. I have used put function and forgot to rerun the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the trouble&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 18:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89115#M25419</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89116#M25420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have the year variable under which there are 2011,2010, 2012 and so on.&lt;/P&gt;&lt;P&gt;how can i use the proc report to get only the particular years report????&lt;/P&gt;&lt;P&gt;without subsetting in the original dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 18:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89116#M25420</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89117#M25421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look of the WHERE statement.&amp;nbsp; It is not limited to PROC REPORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 20:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATES/m-p/89117#M25421</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-29T20:58:31Z</dc:date>
    </item>
  </channel>
</rss>

