<?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 Need rules in data lines but not in headers in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6477#M2531</link>
    <description>I’m creating a PDF document using PROC REPORT and ODS.  The PROC is using spanned headers (grouping columns) and regular headers (in the define statement).  I need to have output that looks like the “rules=rows” report style, but with rules in the data portion of the report only, not through the headers.  I have tried different combinations of styles, compute statements, etc. but I keep getting lines through the headers (between the spanned and regular headers).  Is there a way to have rules only in the data lines, not in any of the headers?</description>
    <pubDate>Tue, 22 Jan 2008 18:58:48 GMT</pubDate>
    <dc:creator>KKlee</dc:creator>
    <dc:date>2008-01-22T18:58:48Z</dc:date>
    <item>
      <title>Need rules in data lines but not in headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6477#M2531</link>
      <description>I’m creating a PDF document using PROC REPORT and ODS.  The PROC is using spanned headers (grouping columns) and regular headers (in the define statement).  I need to have output that looks like the “rules=rows” report style, but with rules in the data portion of the report only, not through the headers.  I have tried different combinations of styles, compute statements, etc. but I keep getting lines through the headers (between the spanned and regular headers).  Is there a way to have rules only in the data lines, not in any of the headers?</description>
      <pubDate>Tue, 22 Jan 2008 18:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6477#M2531</guid>
      <dc:creator>KKlee</dc:creator>
      <dc:date>2008-01-22T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need rules in data lines but not in headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6478#M2532</link>
      <description>Hi:&lt;BR /&gt;
  I do not know of a way in SAS 9.1.3 to get headers treated separately from data cells in PDF. Theoretically, you could use CSS style properties with HTML output or use RTF control strings with RTF output.&lt;BR /&gt;
 &lt;BR /&gt;
If you want a PDF only solution, your best bet for help might be to contact Tech Support or investigate an HTML solution using CSS where you then used a PDF-converter to turn the HTML file into a PDF file. As you can see from the results of running the code below -- the CSS HTMLSTYLE properties are respected for HTML, but not for PDF.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
options center nodate nonumber;&lt;BR /&gt;
ods pdf file='rules_rows_sim.pdf' style=journal;&lt;BR /&gt;
ods html file='rules_rows_sim.html' style=journal;&lt;BR /&gt;
    &lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
  style(report)={rules=none frame=void &lt;BR /&gt;
                 background=_undef_ cellspacing=0}&lt;BR /&gt;
  style(header)={font_style=roman font_weight=bold}&lt;BR /&gt;
  style(column)={background=_undef_  &lt;BR /&gt;
        htmlstyle="border-bottom:2px solid"};&lt;BR /&gt;
  title 'Spanning and Rules=Rows Simulation';&lt;BR /&gt;
  column name &lt;BR /&gt;
         ("Span-A-Lot-O-Cols" ('Spanning' Age Height) &lt;BR /&gt;
         ('Also Span' Weight Sex));&lt;BR /&gt;
  define name /order;&lt;BR /&gt;
  define Age / display 'Age';&lt;BR /&gt;
  define Height /display 'Height';&lt;BR /&gt;
  define Weight / display 'Weight';&lt;BR /&gt;
  define sex / display 'Gender';&lt;BR /&gt;
  compute name;&lt;BR /&gt;
    ** put a line on the top and bottom of the 1st obs;&lt;BR /&gt;
    ** to put a line under the header, but not under the ;&lt;BR /&gt;
    ** spanning header text;&lt;BR /&gt;
    if name = 'Alfred' then do;&lt;BR /&gt;
      call define(_ROW_,'style',&lt;BR /&gt;
           'style={htmlstyle="border-bottom:2px solid;border-top:2px solid"}');&lt;BR /&gt;
    end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
title;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 23 Jan 2008 04:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6478#M2532</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-01-23T04:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need rules in data lines but not in headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6479#M2533</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thank you for the excellent information and example.  I’ll escalate this question to tech support.  I'll also confirm that using PDF is a must.  Thanks again!</description>
      <pubDate>Fri, 25 Jan 2008 17:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-rules-in-data-lines-but-not-in-headers/m-p/6479#M2533</guid>
      <dc:creator>KKlee</dc:creator>
      <dc:date>2008-01-25T17:59:02Z</dc:date>
    </item>
  </channel>
</rss>

