<?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: How to create &amp;quot;total&amp;quot; text in the column case_opened_month using proc report procedure in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334301#M62868</link>
    <description>&lt;P&gt;Please read the documents as advised. This is the original example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute country;
  if _break_ = 'COUNTRY' then
    country = 'Subtotal';
  else if _break_ = '_RBREAK_' then
    country = 'GrandTotal';
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now compare this with your code, and you'll see what is missing.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2017 11:29:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-20T11:29:04Z</dc:date>
    <item>
      <title>How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334279#M62864</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the below report procedure for generating SAS report (please see the attachment for output sas report).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how to create "Total" text &lt;SPAN&gt;("total" text &amp;nbsp;should be 2nd row first column case_opened_month("Month" in the report)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data= days_opened7 ;&lt;BR /&gt;columns case_opened_month no_of_cases_closed avg_days_opened ('_Type of Cases_' SURS MCO UTI UNL LOCK );&lt;BR /&gt;define case_opened_month /group "Month";&lt;BR /&gt;define no_of_cases_closed/analysis sum "No of Cases Closed";&lt;BR /&gt;define avg_days_opened / mean "Average days opened";&lt;BR /&gt;define SURS /analysis sum "Beneficiary Case: SURS Comprehensive";&lt;BR /&gt;define MCO/analysis sum "Beneficiary Case: MCO Education Accuracy";&lt;BR /&gt;define UTI/analysis sum "Beneficiary Incident: Utilization";&lt;BR /&gt;define UNL/analysis sum "Beneficiary Incident: Unlisted Death Date";&lt;BR /&gt;define LOCK/analysis sum "Beneficiary Incident: Lock-In";&lt;BR /&gt;rbreak after/summarize ol ul ;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 09:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334279#M62864</guid>
      <dc:creator>chanduk</dc:creator>
      <dc:date>2017-02-20T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334280#M62865</link>
      <description>&lt;P&gt;Look at page 14 in this document: &lt;A href="http://www.excursive.net/sas/ProcReportPaper.pdf" target="_blank"&gt;http://www.excursive.net/sas/ProcReportPaper.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You use a COMPUTE block to set custom text in summary lines, and the automatic variable _break_ to determine in which grouping level you are.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 09:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334280#M62865</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-20T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334290#M62866</link>
      <description>I have used below code in compute block but it is over replaced the column "Month" ( report output ).Feb17 will be replaced with total. Please let me know is there any other way to write the code.&lt;BR /&gt;&lt;BR /&gt;compute case_opened_month/char;&lt;BR /&gt;case_opened_month="Total";&lt;BR /&gt;endcomp;</description>
      <pubDate>Mon, 20 Feb 2017 10:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334290#M62866</guid>
      <dc:creator>chanduk</dc:creator>
      <dc:date>2017-02-20T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334293#M62867</link>
      <description>&lt;PRE&gt;
Better post the example data and output you want see.
That is the best way to describe your question.


 
proc report data= days_opened7 ;
columns case_opened_month no_of_cases_closed avg_days_opened ('_Type of Cases_' SURS MCO UTI UNL LOCK );
define case_opened_month /group "Month";
define no_of_cases_closed/analysis sum "No of Cases Closed";
define avg_days_opened / mean "Average days opened";
define SURS /analysis sum "Beneficiary Case: SURS Comprehensive";
define MCO/analysis sum "Beneficiary Case: MCO Education Accuracy";
define UTI/analysis sum "Beneficiary Incident: Utilization";
define UNL/analysis sum "Beneficiary Incident: Unlisted Death Date";
define LOCK/analysis sum "Beneficiary Incident: Lock-In";


compute after case_opened_month;
 case_opened_month='Total';
endcomp;


rbreak after/summarize ol ul ;
run; 




&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Feb 2017 10:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334293#M62867</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-20T10:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334301#M62868</link>
      <description>&lt;P&gt;Please read the documents as advised. This is the original example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute country;
  if _break_ = 'COUNTRY' then
    country = 'Subtotal';
  else if _break_ = '_RBREAK_' then
    country = 'GrandTotal';
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now compare this with your code, and you'll see what is missing.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334301#M62868</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-20T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334595#M62882</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attachment for input and output of the report.Below is the SAS code.I tried to print the "Total" text in the summary row but I couldn't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data= days_opened7 ;&lt;BR /&gt;/*WHERE (DATEPART(valid_from_dttm) GE "&amp;amp;OPEN_DATE_MIN"d) and (DATEPART(valid_from_dttm) LE "&amp;amp;OPEN_DATE_MAX"d);*/&lt;BR /&gt;columns case_opened_month no_of_cases_closed avg_days_opened ('_Type of Cases_' SURS MCO UTI UNL LOCK );&lt;BR /&gt;define case_opened_month /group "Month";&lt;BR /&gt;define no_of_cases_closed/analysis sum "No of Cases Closed";&lt;BR /&gt;define avg_days_opened /mean "Average days opened";&lt;BR /&gt;define SURS/analysis sum "Beneficiary Case: SURS Comprehensive";&lt;BR /&gt;define MCO/analysis sum "Beneficiary Case: MCO Education Accuracy";&lt;BR /&gt;define UTI/analysis sum "Beneficiary Incident: Utilization";&lt;BR /&gt;define UNL/analysis sum "Beneficiary Incident: Unlisted Death Date";&lt;BR /&gt;define LOCK/analysis sum "Beneficiary Incident: Lock-In";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;compute case_opened_month;&lt;BR /&gt;if _break_='case_opened_month' then case_opened_month='Total';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;rbreak after/summarize ol ul ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 09:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334595#M62882</guid>
      <dc:creator>chanduk</dc:creator>
      <dc:date>2017-02-21T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334606#M62883</link>
      <description>&lt;PRE&gt;
Post the data or photo here, not Excel or Doc file. I wouldn't like to download it due to implying risk.

&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 10:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/334606#M62883</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-21T10:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "total" text in the column case_opened_month using proc report procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/335534#M62939</link>
      <description>&lt;P&gt;I solved the issue.Below is the code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;compute case_opened_month;&lt;BR /&gt;IF _break_='_RBREAK_' THEN CALL DEFINE('case_opened_month','style','style=[pretext="Total"]');&lt;BR /&gt;endcomp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 09:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-quot-total-quot-text-in-the-column-case-opened/m-p/335534#M62939</guid>
      <dc:creator>chanduk</dc:creator>
      <dc:date>2017-02-24T09:10:28Z</dc:date>
    </item>
  </channel>
</rss>

