<?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 Proc Report - Total in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46944#M6120</link>
    <description>I have to sum up some of the selected variables in a proc report.&lt;BR /&gt;
for e.g. there are 3 variables namely&lt;BR /&gt;
&lt;BR /&gt;
app goals % to goal &lt;BR /&gt;
&lt;BR /&gt;
so here if I have to summarize only app and goal...&lt;BR /&gt;
&lt;BR /&gt;
Please advice for the syntax.&lt;BR /&gt;
Thanks</description>
    <pubDate>Fri, 08 Apr 2011 13:41:25 GMT</pubDate>
    <dc:creator>RUC</dc:creator>
    <dc:date>2011-04-08T13:41:25Z</dc:date>
    <item>
      <title>Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46944#M6120</link>
      <description>I have to sum up some of the selected variables in a proc report.&lt;BR /&gt;
for e.g. there are 3 variables namely&lt;BR /&gt;
&lt;BR /&gt;
app goals % to goal &lt;BR /&gt;
&lt;BR /&gt;
so here if I have to summarize only app and goal...&lt;BR /&gt;
&lt;BR /&gt;
Please advice for the syntax.&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 08 Apr 2011 13:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46944#M6120</guid>
      <dc:creator>RUC</dc:creator>
      <dc:date>2011-04-08T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46945#M6121</link>
      <description>Hi:&lt;BR /&gt;
  Consider the following code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  column age name sex height weight;&lt;BR /&gt;
  define age / order;&lt;BR /&gt;
  define name / order;&lt;BR /&gt;
  define sex / display;&lt;BR /&gt;
  define height / analysis sum;&lt;BR /&gt;
  define weight /analysis mean;&lt;BR /&gt;
  rbreak after /summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
By default, without other instructions from you, all numeric variables in your dataset are treated as ANALYSIS variables with a statistic of SUM -- by PROC REPORT. So in the above code, I am turning off the ANALYSIS usage of AGE by using it as an ORDER item on the report. Then the HEIGHT variable is going to be used with the SUM statistic at any BREAK or RBREAK summary and the WEIGHT variable will be used with the MEAN statistic at any BREAK or RBREAK summary.&lt;BR /&gt;
&lt;BR /&gt;
To turn off the usage of ANALYSIS, you have to use a different usage for a report item. usages of DISPLAY or ORDER or GROUP will "turn off" any summarizing for that report item. For example, if I wanted to turn off summarizing for HEIGHT, but leave summarizing for WEIGHT, I would need to change the DEFINE statement for HEIGHT:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  define height / display;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 08 Apr 2011 15:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46945#M6121</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-08T15:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46946#M6122</link>
      <description>Thanks Cynthia.....Also please advice if I want to print only the values of any variable without labels ..what will be the syntax for that.&lt;BR /&gt;
&lt;BR /&gt;
for e.g. apps goals %to goal - here i have values like 10 20 50%&lt;BR /&gt;
&lt;BR /&gt;
Now If I want the only the 10 20 50% on my excel and not the heads &lt;BR /&gt;
&lt;BR /&gt;
like &lt;BR /&gt;
&lt;BR /&gt;
Total   10 20  50% &lt;BR /&gt;
&lt;BR /&gt;
please advice</description>
      <pubDate>Tue, 12 Apr 2011 15:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46946#M6122</guid>
      <dc:creator>RUC</dc:creator>
      <dc:date>2011-04-12T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46947#M6123</link>
      <description>Hi:&lt;BR /&gt;
  I'm not exactly sure what you mean by "without any labels" -- do you mean column headings??? PROC REPORT has an option called NOHEADER that might do what you want:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.class nowd noheader;&lt;BR /&gt;
...more code...&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Otherwise, if you want SOME headers, such as for NAME, but not others, such as for AGE and HEIGHT, then you would control that in the DEFINE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define name / display 'The Name';&lt;BR /&gt;
define age / display ' ';&lt;BR /&gt;
define height / display ' ';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                         &lt;BR /&gt;
In the above DEFINE statements, the quoted string is the column header to use. For example, NAME will have a column header of The Name, but the ' ' (quote space quote) will be used as the header for AGE and HEIGHT, effectively blanking out their labels in the header area.&lt;BR /&gt;
          &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 12 Apr 2011 15:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46947#M6123</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-12T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46948#M6124</link>
      <description>Thanks Cynthia..I was looking for this only and tried however i am getting double rows in this...like output is coming as&lt;BR /&gt;
&lt;BR /&gt;
10   20  50%&lt;BR /&gt;
10   20  50%&lt;BR /&gt;
&lt;BR /&gt;
Also if you can please advice&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to have header in a row then in a column like&lt;BR /&gt;
&lt;BR /&gt;
Total   10   20  50%</description>
      <pubDate>Tue, 12 Apr 2011 15:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46948#M6124</guid>
      <dc:creator>RUC</dc:creator>
      <dc:date>2011-04-12T15:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46949#M6125</link>
      <description>Hi:&lt;BR /&gt;
  Using a COMPUTE block you can assign a label. See the code below:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  column name sex height weight;&lt;BR /&gt;
  define name / order;&lt;BR /&gt;
  define sex / display;&lt;BR /&gt;
  define height / analysis sum;&lt;BR /&gt;
  define weight /analysis mean;&lt;BR /&gt;
  rbreak after /summarize;&lt;BR /&gt;
  compute after;&lt;BR /&gt;
     name = 'Total';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                            &lt;BR /&gt;
Without seeing your actual code, it is hard to comment on why you are getting dupped rows. I suspect you have a BREAK or RBREAK statement where you do not need one.&lt;BR /&gt;
 &lt;BR /&gt;
If you are unwillling to post code to the forum, it might be a better idea for you to work with Tech Support. There is no way to really answer your question without looking at your data going into PROC REPORT and the code that you are using.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 12 Apr 2011 16:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46949#M6125</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-12T16:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46950#M6126</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help till now however again got stuck....&lt;BR /&gt;
&lt;BR /&gt;
I have to hit 2 different datasets as per my report requirement .&lt;BR /&gt;
&lt;BR /&gt;
However I need all the output on same tab so for that I am using 2 proc reports&lt;BR /&gt;
&lt;BR /&gt;
but due to this I am getting a colored line and 3 blank rows between 2 proc reports&lt;BR /&gt;
&lt;BR /&gt;
So is there a way to remove the line and the between blank rows.&lt;BR /&gt;
&lt;BR /&gt;
Please advice &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
Ruc</description>
      <pubDate>Sat, 16 Apr 2011 08:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46950#M6126</guid>
      <dc:creator>RUC</dc:creator>
      <dc:date>2011-04-16T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46951#M6127</link>
      <description>Hi:&lt;BR /&gt;
  As I said before, if you are unwilling to share your code, it is difficult to understand what you mean. For example, you say you want all the output "on the same tab"?? If you are using ODS HTML, then you would be getting HTML files, if you are using ODS PDF, then you would be getting a PDF file. I don't know what you mean by "tab". You might mean that you are creating output for Excel to open. In that case, it would be useful to know how you are creating your output -- PROC EXPORT?? ODS HTML?? ODS MSOFFICE2K?? ODS TAGSETS.EXCELXP?? Without code, there is no context for what you mean by "tab".&lt;BR /&gt;
&lt;BR /&gt;
  PROC REPORT will only deal with 1 dataset at a time. If you need data from 2 datasets -- and the datasets have the same variables (possibly you have 1 month's data in 1 dataset and another month's data in a second dataset), then you could "stack" both datasets together and use the month variable for BY group processing or PAGE processing in PROC REPORT.&lt;BR /&gt;
&lt;BR /&gt;
  When you say you are getting a "colored line and 3 blank rows" between your two PROC REPORTS, this sounds like the standard horizontal rule that is placed between tables when you use ODS HTML. That horizontal rule comes from the SAS style template. The way to get rid of it is to use a style template in your STYLE= option that does not have a horizontal rule. The ones I know about are: FESTIVAL, SEASIDE, MEADOW, PLATEAU.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file=.... STYLE=PLATEAU;&lt;BR /&gt;
...more code...&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
          &lt;BR /&gt;
However, even if you use a STYLE template to alter the horizontal rule behavior, you will still have space between each table. The code below creates 2 different datasets -- for different schools and then creates a single dataset to use with PROC REPORT. With the Plateau style, I find that there is  less of a gap between tables using the PAGE option versus using the BY statement -- with ODS HTML. Since I don't know what destination you are using, I am only speculating that switching to the PLATEAU style might work for you.&lt;BR /&gt;
&lt;BR /&gt;
Again, if you are unwilling to share your code and describe more about your data (what is in the 2 different datasets), then you will have to open a track with Tech Support to see if they can provide more assistance. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data onefile;&lt;BR /&gt;
  length school $10;&lt;BR /&gt;
  infile datalines;&lt;BR /&gt;
  input school $ name $ age $;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
Ridgemont alan  16&lt;BR /&gt;
Ridgemont bob   17&lt;BR /&gt;
Ridgemont carla 16&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
                                &lt;BR /&gt;
data otherfile;&lt;BR /&gt;
  length school $10;&lt;BR /&gt;
  infile datalines;&lt;BR /&gt;
  input school $ name $ age $;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
Shermer xavier  16&lt;BR /&gt;
Shermer york    17&lt;BR /&gt;
Shermer zenobia 16&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
                                    &lt;BR /&gt;
data allschools;&lt;BR /&gt;
  set onefile&lt;BR /&gt;
      otherfile;&lt;BR /&gt;
run;&lt;BR /&gt;
                   &lt;BR /&gt;
proc sort data=allschools;               &lt;BR /&gt;
  by school name;&lt;BR /&gt;
run;&lt;BR /&gt;
                                 &lt;BR /&gt;
title; ods listing close;&lt;BR /&gt;
ods html file='c:\temp\html_plateau1.html' style=plateau;&lt;BR /&gt;
                             &lt;BR /&gt;
  ** PROC REPORT with PAGE option. No titles to show just space;&lt;BR /&gt;
  ** between tables;&lt;BR /&gt;
  proc report data=allschools nowd;&lt;BR /&gt;
    column ('1) PROC REPORT with PAGE' school name age);&lt;BR /&gt;
    define school / order;&lt;BR /&gt;
    define name / order;&lt;BR /&gt;
    define age / display;&lt;BR /&gt;
    break after school / page;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
           &lt;BR /&gt;
ods html file='c:\temp\html_plateau2.html' style=plateau;&lt;BR /&gt;
                     &lt;BR /&gt;
  ** PROC REPORT with BY option. No titles to show just space;&lt;BR /&gt;
  ** between tables;&lt;BR /&gt;
  options nobyline;&lt;BR /&gt;
  proc report data=allschools nowd;&lt;BR /&gt;
    by school;&lt;BR /&gt;
    column ('2) PROC REPORT with BY groups' school name age);&lt;BR /&gt;
    define school / order;&lt;BR /&gt;
    define name / order;&lt;BR /&gt;
    define age / display;&lt;BR /&gt;
  run;&lt;BR /&gt;
  options byline;&lt;BR /&gt;
  title;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sat, 16 Apr 2011 14:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Total/m-p/46951#M6127</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-16T14:22:03Z</dc:date>
    </item>
  </channel>
</rss>

