<?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: Excess Blank Lines in Proc Tabulate with ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1020#M493</link>
    <description>I believe you have encountered a known problem with TABULATE and ODS PRINTER.  This problem has been fixed for the 9.2 release of SAS.&lt;BR /&gt;
&lt;BR /&gt;
I don't have a suggestion for a workaround, sorry.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
    <pubDate>Mon, 10 Jul 2006 16:45:30 GMT</pubDate>
    <dc:creator>David_SAS</dc:creator>
    <dc:date>2006-07-10T16:45:30Z</dc:date>
    <item>
      <title>Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1019#M492</link>
      <description>I'm making a basic PDF report with Proc Tabulate.  From left to right, I have a main grouping category, a common set of subgroups for each category, followed by a few columns under which all my counts and percentages are listed.  Those columns have titles, but my category and subcategory columns do not.  (Sorry if this is confusing...it's hard to recreate the actual report in text format.)&lt;BR /&gt;
&lt;BR /&gt;
Anyway, starting with the second main grouping category, there's an extra blank line at the top of the subgroup column within each main group.  It only shows up on the PDF version of the report, not on the basic SAS output--probably because I used the row=float option.  However, I know that option is not supposed to actually work in ODS output.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas of how I can eliminate this bothersome extra blank line at the start of every group in my PDF output?  I'm using a custom style, which is similar to Printer but with some edited fonts and text sizes.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Mon, 10 Jul 2006 15:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1019#M492</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-10T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1020#M493</link>
      <description>I believe you have encountered a known problem with TABULATE and ODS PRINTER.  This problem has been fixed for the 9.2 release of SAS.&lt;BR /&gt;
&lt;BR /&gt;
I don't have a suggestion for a workaround, sorry.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Mon, 10 Jul 2006 16:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1020#M493</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-07-10T16:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1021#M494</link>
      <description>Elayne:&lt;BR /&gt;
  Here's something that may be feasible for you -- but not using TABULATE directly. If you create an output dataset using PROC TABULATE and then massage the _TYPE_ values a bit, you can use PROC REPORT to print out something that looks very close to the original TABULATE output. The sample program below uses SASHELP.PRDSALE and was designed with labels that fit a previous student's report. (So, for example, COUNTRY was not really being used as COUNTRY, but was formatted to display as delinquency categories to help the student visualize the changes for her program.)&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;B&gt;&lt;BR /&gt;
** make a format to display country like a;&lt;BR /&gt;
** delinquency category;&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $bktfmt (notsorted)&lt;BR /&gt;
  'CANADA' = 'Current'&lt;BR /&gt;
  'GERMANY' = '30'&lt;BR /&gt;
  'U.S.A.' = '60';&lt;BR /&gt;
run;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods pdf file='redo_tab.pdf';&lt;BR /&gt;
 &lt;BR /&gt;
proc tabulate data=sashelp.prdsale&lt;BR /&gt;
     out=work.prdout;&lt;BR /&gt;
title 'with row=float';&lt;BR /&gt;
   where put(month, monname3.) in ('Jan', 'Feb', 'Mar');&lt;BR /&gt;
 format month monname3.;&lt;BR /&gt;
 format Country $bktfmt.;&lt;BR /&gt;
 class month;&lt;BR /&gt;
 classlev month / s={background=cxFFFF99 &lt;BR /&gt;
              font_face=Arial &lt;BR /&gt;
              foreground=cx3366FF                       &lt;BR /&gt;
              font_size=8pt just=C};&lt;BR /&gt;
    class country /preloadfmt order=data;&lt;BR /&gt;
    class prodtype ;&lt;BR /&gt;
 var actual;&lt;BR /&gt;
 table prodtype=''*(month='') &lt;BR /&gt;
          all="Total"*(month=''),&lt;BR /&gt;
          country=''*(&lt;BR /&gt;
          n={label="#'s"}&lt;BR /&gt;
          actual={label="$'s"}*sum=''*f=dollar12.)&lt;BR /&gt;
    all='Total Servicing Portfolio'*(n={label="#'s"}&lt;BR /&gt;
    actual={label="$'s"}*sum=''*f=dollar12.)&lt;BR /&gt;
 / printmiss misstext="0"&lt;BR /&gt;
   box='Report Data'&lt;BR /&gt;
   row=float ;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc print data=work.prdout;&lt;BR /&gt;
title 'output from tabulate';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
** massage the data to get the _type_ in the;&lt;BR /&gt;
** right rows and columns for proc report;&lt;BR /&gt;
** also create a var called CNT from N created by TAB;&lt;BR /&gt;
data prdout2;&lt;BR /&gt;
  set work.prdout;&lt;BR /&gt;
  if _type_ = 101 then country = 'zzzz';&lt;BR /&gt;
  else if _type_ = 110&lt;BR /&gt;
    then prodtype = 'Total';&lt;BR /&gt;
  else if _type_ = 100 then do;&lt;BR /&gt;
    country = 'zzzz';&lt;BR /&gt;
 prodtype='Total';&lt;BR /&gt;
 end;&lt;BR /&gt;
 Cnt = N;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
** make a format for proc report;&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $repfmt (notsorted)&lt;BR /&gt;
  'CANADA' = 'Current'&lt;BR /&gt;
  'GERMANY' = '30'&lt;BR /&gt;
  'U.S.A.' = '60'&lt;BR /&gt;
  'zzzz' = 'Total Servicing Portfolio';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc report data=prdout2 nowd;&lt;BR /&gt;
title 'Using Proc Report on Tabulate dataset';&lt;BR /&gt;
  column ('Report Data' prodtype month)&lt;BR /&gt;
         country,(cnt Actual_Sum);&lt;BR /&gt;
  define prodtype / group 'Type' style(column)=Header;&lt;BR /&gt;
  define month /group order=data 'Mon'&lt;BR /&gt;
           style(column)={background=cxFFFF99 &lt;BR /&gt;
              font_face=Arial &lt;BR /&gt;
              foreground=cx3366FF                       &lt;BR /&gt;
              font_size=8pt just=C};&lt;BR /&gt;
  define country /across ' ' order=data f=$repfmt.;&lt;BR /&gt;
  define cnt /sum f=comma6. "#'s";&lt;BR /&gt;
  define Actual_Sum / sum f=dollar14.0 "$'s";&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 10 Jul 2006 17:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1021#M494</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-07-10T17:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1022#M495</link>
      <description>David: So, when does 9.2 come out? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cynthia: Thanks, your solution worked.  I often use a similar solution using proc means on the original dataset, but it requires a few steps thereafter to reach a dataset that has proper numerators, denominators, and calculated percentages.  Your solution felt a little cumbersome at first (I had to specify what to do with eight different _TYPE_ values in an if-then) but it did achieve the same end product in fewer steps, programatically.</description>
      <pubDate>Wed, 12 Jul 2006 14:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1022#M495</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-12T14:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1023#M496</link>
      <description>SAS 9.2 is scheduled to ship in the first quarter of 2007.&lt;BR /&gt;
&lt;BR /&gt;
 -- David Kelley, SAS</description>
      <pubDate>Wed, 12 Jul 2006 16:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1023#M496</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-07-12T16:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1024#M497</link>
      <description>Try to put indent=0 into the end of our table statement. &lt;BR /&gt;
Like this /BOX='Xxxxxxxx' INDENT=0; That works for me.</description>
      <pubDate>Tue, 18 Jul 2006 15:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1024#M497</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-18T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excess Blank Lines in Proc Tabulate with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1025#M498</link>
      <description>You are absolutely right.  I only tried it on one instance but it worked just fine.&lt;BR /&gt;
&lt;BR /&gt;
Kudos and thanks!</description>
      <pubDate>Fri, 21 Jul 2006 19:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excess-Blank-Lines-in-Proc-Tabulate-with-ODS/m-p/1025#M498</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-21T19:25:26Z</dc:date>
    </item>
  </channel>
</rss>

