<?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: Add horizontal lines only between primary groups in PROC REPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664310#M198435</link>
    <description>&lt;P&gt;Which ODS style are you using?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 14:28:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-06-23T14:28:43Z</dc:date>
    <item>
      <title>Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664305#M198432</link>
      <description>&lt;P&gt;Is it possible to have PROC REPORT only add horizontal lines between the first set of group variables in the call? I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=top_inj_pct(where=(event_type=2)) spanrows
		style(report)=[frame=hsides rules=rows]
		style(header)=[background=white color=&amp;amp;Dblack.]
		style(lines)=[background=white];
	column injury_or_illness_code injpct TL_pct top_mech top_act;
	define injury_or_illness_code / group left 'Injury' order=data
		style(column)=[cellwidth=2in];
	define injpct / group 'Of All Injuries' style(column)=[just=c];
	define TL_pct / group 'Resulting in Time Loss*' style(column)=[just=c];
	define top_mech / group "Common Injury Mechanisms" order=data;
	define top_act / group "Common Activities" order=data;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.png" style="width: 731px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46514iE65C7101E0297853/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.png" alt="table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to have the lines that span the table, without getting the additional lines on the right side. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664305#M198432</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-23T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664310#M198435</link>
      <description>&lt;P&gt;Which ODS style are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664310#M198435</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-23T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664316#M198440</link>
      <description>&lt;P&gt;I am using ODS RTF&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 15:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664316#M198440</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-23T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664332#M198449</link>
      <description>&lt;P&gt;Could you provide some data to test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For starters remove rules=rows in line 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then perhaps apply a style to the first group using a compute block, such as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN&gt;&lt;STRONG&gt;compute after injury_or_illness_code /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style={borderbottomwidth=1pt borderbottomcolor=black&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp; line ' ';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664332#M198449</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-06-23T14:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664333#M198450</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329503"&gt;@tburus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I ma using ODS RTF&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That is your ODS destination. The Style controls the colors and appearance of lines and text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without any data it is also hard to test code.&lt;/P&gt;
&lt;P&gt;I would suggest that possibly you could try making your Top_mech and top_act variables Order variables as I don't see anything appearing to the right of them than needs to be "grouped".&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664333#M198450</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-23T14:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664360#M198467</link>
      <description>&lt;P&gt;Sorry, I was working to quickly and misread the question. I am using the default style.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My output doesn't change if I change these into order variables. Even if I turn everything into order variables, the output doesn't change. I tried using group only on the first variable ("injury_or_illness_code") and then "rules=groups", but this gave me no horizontal lines inside the table.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 15:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664360#M198467</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-23T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add horizontal lines only between primary groups in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664390#M198477</link>
      <description>&lt;P&gt;You might see what the JOURNAL style does to the output.&lt;/P&gt;
&lt;P&gt;You can specify a different style than your current default on a the proc statement such as&lt;/P&gt;
&lt;P&gt;Proc report&amp;nbsp;&amp;nbsp; data=...&amp;nbsp;&amp;nbsp; style=Journal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No promises without actual data.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 16:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-horizontal-lines-only-between-primary-groups-in-PROC-REPORT/m-p/664390#M198477</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-23T16:51:52Z</dc:date>
    </item>
  </channel>
</rss>

