<?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: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49225#M6337</link>
    <description>Hi:&lt;BR /&gt;
WIDTH= is a LISTING only option. Also, for listing format can also control column width...but that is not true of other ODS destinations.&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
There are a couple of ways to do what Kim wanted.&lt;BR /&gt;
&lt;BR /&gt;
I picked what I thought was easiest. To assign the string to the value for country at the break to COUNTRY, you have to be sure that the variable length (not the format) is wide enough for the entire string.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia</description>
    <pubDate>Fri, 26 Jun 2009 19:46:22 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-06-26T19:46:22Z</dc:date>
    <item>
      <title>ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49222#M6334</link>
      <description>Is there any "easy" way to get "Overall Totals" to print for the RBREAK line with ODS EXCELXP.TAGSET?  See PDF report for the "Overall Totals" RBREAK.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file="c:\temp\modified rbreak.pdf";&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="c:\temp\modified rbreak.xls";&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp&lt;BR /&gt;
options(sheet_name='Summary');&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
   title "Modified Total";&lt;BR /&gt;
   where product='SOFA';&lt;BR /&gt;
   col country region predict actual division prodtype product ;&lt;BR /&gt;
&lt;BR /&gt;
   compute country;   &lt;BR /&gt;
      if _BREAK_='_RBREAK_' then&lt;BR /&gt;
	call define(_COL_,'STYLE','STYLE=[FONT_STYLE=italic PRETEXT="Overall Totals"]');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
&lt;BR /&gt;
    rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much,&lt;BR /&gt;
Kim</description>
      <pubDate>Fri, 26 Jun 2009 00:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49222#M6334</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2009-06-26T00:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49223#M6335</link>
      <description>Hi, Kim:&lt;BR /&gt;
  PRETEXT=, as you discovered, doesn't work in all destinations the same way. But, with a regular COMPUTE block, you can accomplish the same end result...just a different path. Your string "Overall Totals" is longer than the assigned variable length of COUNTRY in SASHELP.PRDSALE ($10), so that's problematic-- but can be taken care of with a COMPUTED report item. PRETEXT is a nice workaround sometimes for that, but apparently, not with ExcelXP.&lt;BR /&gt;
 &lt;BR /&gt;
  So, in my code, PRTCTRY will be displayed instead of COUNTRY...same test for _RBREAK_, only on a different report item. Then, I put the italic on the RBREAK statement, because it was more straightforward to put it there than on a call define, which was no longer needed for PRETEXT.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                &lt;BR /&gt;
ods pdf file="c:\temp\modified_rbreak2.pdf";&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="c:\temp\modified_rbreak2.xls";&lt;BR /&gt;
                            &lt;BR /&gt;
ods tagsets.excelxp&lt;BR /&gt;
options(sheet_name='Summary');&lt;BR /&gt;
                     &lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
title "Modified Total";&lt;BR /&gt;
where product='SOFA';&lt;BR /&gt;
col country prtctry region predict actual division prodtype product ;&lt;BR /&gt;
define country / noprint;&lt;BR /&gt;
define prtctry / computed 'Country';&lt;BR /&gt;
compute prtctry / character length=15;&lt;BR /&gt;
  prtctry = country;&lt;BR /&gt;
  if _BREAK_='_RBREAK_' then do;&lt;BR /&gt;
    prtctry="Overall Totals";&lt;BR /&gt;
  end;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
rbreak after / summarize&lt;BR /&gt;
       style={font_style=italic};&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 26 Jun 2009 01:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49223#M6335</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-26T01:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49224#M6336</link>
      <description>This works. Unsure why your version doesn't, or why the width= option is ignored.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file="f:\modified rbreak.pdf";&lt;BR /&gt;
ods tagsets.excelxp file="f:\modified rbreak.xls";&lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='Summary');&lt;BR /&gt;
&lt;BR /&gt;
data prdsale/view=prdsale;&lt;BR /&gt;
  attrib country length=$50 format=$50.;&lt;BR /&gt;
  set sashelp.prdsale;&lt;BR /&gt;
run;&lt;BR /&gt;
proc report data=prdsale nowd;&lt;BR /&gt;
  title "Modified Total";&lt;BR /&gt;
  where product='SOFA';&lt;BR /&gt;
  column country region predict actual division prodtype product ;&lt;BR /&gt;
  *define country/format=$50. width=50;&lt;BR /&gt;
  compute country; &lt;BR /&gt;
  if _BREAK_='_RBREAK_' then do; &lt;BR /&gt;
    country="Overall Totals";&lt;BR /&gt;
    call define(ROW,'STYLE','STYLE=[FONT_STYLE=italic]');&lt;BR /&gt;
  end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
ods pdf close;</description>
      <pubDate>Fri, 26 Jun 2009 01:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49224#M6336</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-26T01:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49225#M6337</link>
      <description>Hi:&lt;BR /&gt;
WIDTH= is a LISTING only option. Also, for listing format can also control column width...but that is not true of other ODS destinations.&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
There are a couple of ways to do what Kim wanted.&lt;BR /&gt;
&lt;BR /&gt;
I picked what I thought was easiest. To assign the string to the value for country at the break to COUNTRY, you have to be sure that the variable length (not the format) is wide enough for the entire string.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia</description>
      <pubDate>Fri, 26 Jun 2009 19:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49225#M6337</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-26T19:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49226#M6338</link>
      <description>Thanks for both solutions.  More than likely, I'll use both throughout the years to come.&lt;BR /&gt;
&lt;BR /&gt;
Kim</description>
      <pubDate>Fri, 26 Jun 2009 22:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49226#M6338</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2009-06-26T22:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49227#M6339</link>
      <description>Cheers Cynthia.&lt;BR /&gt;
Yes, I discovered that the variable length (not the format length) had to be increased, hence the view.&lt;BR /&gt;
I provided an alternative to show that creating an extra variable wasn't required, but then my length was to short for the label and I had to create a view... oh well... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 03 Jul 2009 01:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49227#M6339</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-07-03T01:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49228#M6340</link>
      <description>Hi:&lt;BR /&gt;
  Creating a new report item isn't that much overhead. PROC REPORT is very good at creating COMPUTED report items that only exist for the duration of the PROC REPORT step. The original variable on the report is unchanged in the data and is used in the creation of the COMPUTED report item.&lt;BR /&gt;
 &lt;BR /&gt;
  As I said, there are other possible solutions. Another is to use a user-defined format. &lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc format;&lt;BR /&gt;
  value $ctry 'CANADA' = 'Canada'&lt;BR /&gt;
              'U.S.A.' = 'United States'&lt;BR /&gt;
              'GERMANY' = 'Germany'&lt;BR /&gt;
              'xxx' = 'Overall Totals';&lt;BR /&gt;
                  &lt;BR /&gt;
ods pdf file="c:\temp\modified_rbreak3.pdf";&lt;BR /&gt;
ods tagsets.excelxp file="c:\temp\modified_rbreak3.xls";&lt;BR /&gt;
                                          &lt;BR /&gt;
ods tagsets.excelxp&lt;BR /&gt;
options(sheet_name='Summary');&lt;BR /&gt;
                                 &lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
title "Modified Total";&lt;BR /&gt;
where product='SOFA';&lt;BR /&gt;
col country region predict actual division prodtype product ;&lt;BR /&gt;
define country / f=$ctry.;&lt;BR /&gt;
compute country ;&lt;BR /&gt;
  if _BREAK_='_RBREAK_' then do;&lt;BR /&gt;
    country="xxx";&lt;BR /&gt;
  end;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
rbreak after / summarize&lt;BR /&gt;
       style={font_style=italic};&lt;BR /&gt;
run;&lt;BR /&gt;
                                    &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 03 Jul 2009 04:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49228#M6340</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-03T04:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49229#M6341</link>
      <description>So many ways to skin a cat! Beautiful. Thanks Cynthia.</description>
      <pubDate>Sun, 05 Jul 2009 22:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49229#M6341</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-07-05T22:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCELXP.TAGSET &amp; PROC REPORT Customized RBREAK</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49230#M6342</link>
      <description>Hi:&lt;BR /&gt;
  Although I have to say that no animals were harmed in the production of the report!&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 06 Jul 2009 02:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCELXP-TAGSET-PROC-REPORT-Customized-RBREAK/m-p/49230#M6342</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-06T02:42:21Z</dc:date>
    </item>
  </channel>
</rss>

