<?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: proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443307#M20598</link>
    <description>&lt;P&gt;Hi Cynthina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;every thing is there in my code. I tried t increase the length by length statement and by format statement before proc report and it didn't work&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 14:11:25 GMT</pubDate>
    <dc:creator>mona4u</dc:creator>
    <dc:date>2018-03-07T14:11:25Z</dc:date>
    <item>
      <title>proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/442926#M20587</link>
      <description>&lt;P&gt;I'm trying&amp;nbsp;proc report code and it's truncated Total Open Issues on the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I can find a way to display the whole string I tried to increase the length of site_number but it didn't work&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code that's I'm running&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=&amp;amp;Queries.2;&lt;BR /&gt;length SITE_NUMBER $25;&lt;BR /&gt;column SITE_NUMBER sitenum calcpct ;&lt;BR /&gt;define SITE_NUMBER/ display"Top 3 Sites with highest # issues";&lt;BR /&gt;define sitenum/ "# Open Issues";&lt;BR /&gt;define calcpct/ computed 'Percent' format=percent8.2;&lt;BR /&gt;compute after;&lt;BR /&gt;SITE_NUMBER='Total Open Issues';&lt;BR /&gt;endcomp;&lt;BR /&gt;COMPUTE before;&lt;BR /&gt;holdtot=sitenum.sum;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute calcpct;&lt;BR /&gt;calcpct= sitenum.sum/ holdtot ;&lt;BR /&gt;endcomp;&lt;BR /&gt;rbreak after / summarize ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is my output&lt;/P&gt;&lt;P&gt;&amp;nbsp;Top 3 Sites with highest # issues # Open Issues Percent&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1350&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;35.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1601&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;35.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1450&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;30.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Open Issu&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;100.0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 06 Mar 2018 15:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/442926#M20587</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-06T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/442939#M20590</link>
      <description>Hi:&lt;BR /&gt; The length of SITE_Number has to be increased BEFORE the PROC REPORT step. But I don't see where you are assigning the string "Total Open Issues" on the break and, although I see an RBREAK statement in your code, I don't see a COMPUTE AFTER block. How did you produce the output you show?&lt;BR /&gt;&lt;BR /&gt;Also, no one can run your code because you have not provided your ODS statements or any data.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 06 Mar 2018 15:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/442939#M20590</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-06T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443307#M20598</link>
      <description>&lt;P&gt;Hi Cynthina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;every thing is there in my code. I tried t increase the length by length statement and by format statement before proc report and it didn't work&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443307#M20598</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-07T14:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443393#M20600</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;Sorry, I missed the COMPUTE AFTER in your code. I only see a LENGTH statement inside the PROC REPORT step. I meant something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report_long_text_rbreak.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19033iD7C9945B7C1041D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_long_text_rbreak.png" alt="report_long_text_rbreak.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice how with Report #1, I only get the first letter of my COMPUTE AFTER string, because the length of the SEX variable in SASHELP.CLASS is $1. However, for #2 report, I am able to put "Gender Summary" as the text string at the end of the report because I have changed the length of the SEX variable in a DATA step program. There are a couple of other ways to solve this issue, but this is the most straightforward for beginners.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code that generated the output above.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class;
  title '1) not big enough for AFTER text because length of SEX variable is only $1';
column sex n pctn age height;
define sex / group;
define n / 'Count';
define pctn / 'Percent' f=percent9.2;
define age / 'Avg Age' mean f=6.2;
define height / 'Avg Height' mean f=6.2;
rbreak after / summarize;
compute after;
  sex='Gender Summary';
endcomp;
run;

data newclass;
  length sex $15;
  set sashelp.class;
run;

proc report data=newclass;
  title '2) now length good for AFTER text';
column sex n pctn age height;
define sex / group;
define n / 'Count';
define pctn / 'Percent' f=percent9.2;
define age / 'Avg Age' mean f=6.2;
define height / 'Avg Height' mean f=6.2;
rbreak after / summarize;
compute after;
  sex='Gender Summary';
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this explains what I mean about changing the length BEFORE the PROC REPORT step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443393#M20600</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-07T16:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443407#M20601</link>
      <description>I changed both the length and the format to be able to display the result.&lt;BR /&gt;Thanks so much</description>
      <pubDate>Wed, 07 Mar 2018 16:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report/m-p/443407#M20601</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-07T16:35:43Z</dc:date>
    </item>
  </channel>
</rss>

