<?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 Problem With Proc Report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-With-Proc-Report/m-p/103390#M28968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I having small prob with Compute block in proc report..&lt;/P&gt;&lt;P&gt;here is the my sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=sasuser.admit;&lt;/P&gt;&lt;P&gt;column age fee height;&lt;/P&gt;&lt;P&gt;define age/display;&lt;/P&gt;&lt;P&gt;define fee/"Max Fee";&lt;/P&gt;&lt;P&gt;define Height/"Max Height";&lt;/P&gt;&lt;P&gt;rbreak after/summarize dul dol;&lt;/P&gt;&lt;P&gt;compute after;&lt;/P&gt;&lt;P&gt;if _BREAK_= "_RBREAK_"&amp;nbsp; then &lt;/P&gt;&lt;P&gt;age="Total";&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am trying to get the total value for&amp;nbsp; Fee and height variables and i want to display "Total" text in the bottom of the Age variable.&lt;/P&gt;&lt;P&gt;but the problem is age is a a numeric variable,so i can not insert the text in&amp;nbsp; that variable..&lt;/P&gt;&lt;P&gt;anybody have any suggestion&amp;nbsp; for this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 11:32:41 GMT</pubDate>
    <dc:creator>kuridisanjeev</dc:creator>
    <dc:date>2012-08-24T11:32:41Z</dc:date>
    <item>
      <title>Problem With Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-With-Proc-Report/m-p/103390#M28968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I having small prob with Compute block in proc report..&lt;/P&gt;&lt;P&gt;here is the my sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=sasuser.admit;&lt;/P&gt;&lt;P&gt;column age fee height;&lt;/P&gt;&lt;P&gt;define age/display;&lt;/P&gt;&lt;P&gt;define fee/"Max Fee";&lt;/P&gt;&lt;P&gt;define Height/"Max Height";&lt;/P&gt;&lt;P&gt;rbreak after/summarize dul dol;&lt;/P&gt;&lt;P&gt;compute after;&lt;/P&gt;&lt;P&gt;if _BREAK_= "_RBREAK_"&amp;nbsp; then &lt;/P&gt;&lt;P&gt;age="Total";&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am trying to get the total value for&amp;nbsp; Fee and height variables and i want to display "Total" text in the bottom of the Age variable.&lt;/P&gt;&lt;P&gt;but the problem is age is a a numeric variable,so i can not insert the text in&amp;nbsp; that variable..&lt;/P&gt;&lt;P&gt;anybody have any suggestion&amp;nbsp; for this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 11:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-With-Proc-Report/m-p/103390#M28968</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-08-24T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-With-Proc-Report/m-p/103391#M28969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; As you have discovered, a usage of DISPLAY doesn't change the fundamental nature of the underlying variable. AGE was still numeric, so you couldn't assign a text string to the value at the break point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There are several different ways to get what you want. Probably the simplest is to either&lt;/P&gt;&lt;P&gt;1) create a computed item on the report from AGE or 2) create a character version of AGE in a WORK dataset before the REPORT step. You seem to be using the LISTING output (since you show DOL and DUL), so an ODS method (using PRETEXT) won't work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; A simple example using SASHELP.CLASS is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column age showage name height;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age/display noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define showage / computed "Age" right;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define name/"Name";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define Height/"Height";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; rbreak after/summarize dul dol;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute showage / character length=5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showage = put(age,2.0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _BREAK_ = "_RBREAK_" then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showage = 'Total';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 14:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-With-Proc-Report/m-p/103391#M28969</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-08-24T14:15:49Z</dc:date>
    </item>
  </channel>
</rss>

