<?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: Proc Report - merge and center varying sized cells in rows in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109324#M10002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Column and Defines?&amp;nbsp; Defining the column as a group should work.&amp;nbsp; I have not worked on SAS for quite a while but I looked at an old job setup and it is working as you described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLUMN STOOGE TYPE STATE CASETYPE REMAINING;&lt;/P&gt;&lt;P&gt;DEFINE STOOGE / GROUP 'STOOGE';&lt;/P&gt;&lt;P&gt;DEFINE TYPE / ....&lt;/P&gt;&lt;P&gt;DEFINE STATE / ....&lt;/P&gt;&lt;P&gt;DEFINE CASETYPE / ....&lt;/P&gt;&lt;P&gt;DEFINE REMAINING / ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 13:53:28 GMT</pubDate>
    <dc:creator>HoustonGSC</dc:creator>
    <dc:date>2013-10-10T13:53:28Z</dc:date>
    <item>
      <title>Proc Report - merge and center varying sized cells in rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109323#M10001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, I have a report I would like to make look a bit nicer in Excel.&amp;nbsp; It presently lists a varying number of items per person.&amp;nbsp; So the first person might have 3 lines and the second person 4 lines and the third person 2 lines etc.&amp;nbsp; In excel, instead of having the persons name show up on each line, you can merge them together and center them.&amp;nbsp; So the first person still has 3 lines, but the name shows up once and it shows up in the middle of the 3 lines.&amp;nbsp; Is there a way to do that using PROC Report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached spreadsheet, the top table is an idea of what I'm producing and the bottom table is what I'd like to produce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I'm using to create the colors...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute nurse_analyst;&lt;/P&gt;&lt;P&gt;if nurse_analyst in (&amp;amp;nurses.) then call define(_row_,"style","style=[background=lightgrey]");&lt;/P&gt;&lt;P&gt;if nurse_analyst = ' ' and _break_ ne "_RBREAK_" then do;&lt;/P&gt;&lt;P&gt;mr_code='Total'; call define(_row_,"style","style=[background=lightblue]"); end;&lt;/P&gt;&lt;P&gt;if nurse_analyst = ' ' and _break_ = "_RBREAK_" then do;&lt;/P&gt;&lt;P&gt;mr_code='Grand Total';&amp;nbsp; call define(_row_,"style","style=[background=lightred]"); end;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I re-typed this in so there could be typos (sorry in advance) but the actual code does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109323#M10001</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2013-10-10T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - merge and center varying sized cells in rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109324#M10002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Column and Defines?&amp;nbsp; Defining the column as a group should work.&amp;nbsp; I have not worked on SAS for quite a while but I looked at an old job setup and it is working as you described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLUMN STOOGE TYPE STATE CASETYPE REMAINING;&lt;/P&gt;&lt;P&gt;DEFINE STOOGE / GROUP 'STOOGE';&lt;/P&gt;&lt;P&gt;DEFINE TYPE / ....&lt;/P&gt;&lt;P&gt;DEFINE STATE / ....&lt;/P&gt;&lt;P&gt;DEFINE CASETYPE / ....&lt;/P&gt;&lt;P&gt;DEFINE REMAINING / ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109324#M10002</guid>
      <dc:creator>HoustonGSC</dc:creator>
      <dc:date>2013-10-10T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - merge and center varying sized cells in rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109325#M10003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I am using column and defines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per your recommendation, I tried grouping on stooge but I got a message that other vars were indicated as display and it wouldn't group.&amp;nbsp; Because of that, I don't think Grouping is exactly what I want because I still need multiple lines per stooge. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the thought though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 15:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109325#M10003</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2013-10-10T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - merge and center varying sized cells in rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109326#M10004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;If you take a look at this blog post, you'll see that the SPANROWS option in PROC REPORT does what you want. You need to use the option on the PROC REPORT statement in order to get the spanning behavior.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sastraining/2011/02/28/whats-so-great-about-spanrows/"&gt;http://blogs.sas.com/content/sastraining/2011/02/28/whats-so-great-about-spanrows/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 18:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-and-center-varying-sized-cells-in-rows/m-p/109326#M10004</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-10-10T18:17:13Z</dc:date>
    </item>
  </channel>
</rss>

