<?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 Report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89293#M25459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;STRONG&gt;year&lt;/STRONG&gt; variable under which there are many different years&lt;/P&gt;&lt;P&gt;I want to do a report on this dataset and&amp;nbsp; for each year seperately&lt;/P&gt;&lt;P&gt;since year is numeric i cannot use it in the where statement inside the PROC REPORT&lt;/P&gt;&lt;P&gt;when i convert to charecter in the datastep and then use it in the where statement inside the report it says :there were 0 observations where year is 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me where i went wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2012&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 18:55:47 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-05-29T18:55:47Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89293#M25459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;STRONG&gt;year&lt;/STRONG&gt; variable under which there are many different years&lt;/P&gt;&lt;P&gt;I want to do a report on this dataset and&amp;nbsp; for each year seperately&lt;/P&gt;&lt;P&gt;since year is numeric i cannot use it in the where statement inside the PROC REPORT&lt;/P&gt;&lt;P&gt;when i convert to charecter in the datastep and then use it in the where statement inside the report it says :there were 0 observations where year is 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me where i went wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2012&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 18:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89293#M25459</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T18:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89294#M25460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I found my mistake...&lt;/P&gt;&lt;P&gt;There were some leading spaces&lt;/P&gt;&lt;P&gt;Could someone help me do all the three things together while extracting year from the date variable????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; year=year(date);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;year1=put(year,best.);&lt;/P&gt;&lt;P&gt;year2=strip(year1);&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 19:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89294#M25460</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T19:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89295#M25461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;year=put(year(date),4.);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 19:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89295#M25461</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-05-29T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89296#M25462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of the 4. if i used best. I am getting leading spaces. Why is that? and could you also show me how to strip in the same line&lt;/P&gt;&lt;P&gt;Is the below one right ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year=strip(put(year(date),4.));&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 19:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89296#M25462</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-05-29T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89297#M25463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're making your life way too complicated.&amp;nbsp; Of course you can use a WHERE statement on a numeric variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where numvar=2011;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just don't use quotes when referring to a numeric value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 19:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Report/m-p/89297#M25463</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-05-29T19:41:01Z</dc:date>
    </item>
  </channel>
</rss>

