<?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 manipulating proc report layout in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169130#M12265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm starting to work with proc report and I have some troubles with manipulating layout.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8581_b.png" /&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14204683861686046" jivemacro_uid="_14204683861686046" modifiedtitle="true"&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;input a $ b c @@;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;a 1 11 b 2 22 c 3 33&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;title1 "Test";&lt;/P&gt;
&lt;P&gt;proc report data=test;&lt;/P&gt;
&lt;P&gt; column ("Section"(a)) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("Another section"("Subsection"(b c))) ;&lt;/P&gt;
&lt;P&gt; define a / group; &lt;/P&gt;
&lt;P&gt; define b / group; &lt;/P&gt;
&lt;P&gt; define c / group;&lt;/P&gt;
&lt;P&gt;run; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what I'm looking for is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8582_b.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible with proc report? Or would you recomend tabulate? I'm not very familar with proc tabulate, so any help with proc report would very be very apreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 14:40:04 GMT</pubDate>
    <dc:creator>karolisb</dc:creator>
    <dc:date>2015-01-05T14:40:04Z</dc:date>
    <item>
      <title>manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169130#M12265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm starting to work with proc report and I have some troubles with manipulating layout.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8581_b.png" /&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14204683861686046" jivemacro_uid="_14204683861686046" modifiedtitle="true"&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;input a $ b c @@;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;a 1 11 b 2 22 c 3 33&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;title1 "Test";&lt;/P&gt;
&lt;P&gt;proc report data=test;&lt;/P&gt;
&lt;P&gt; column ("Section"(a)) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("Another section"("Subsection"(b c))) ;&lt;/P&gt;
&lt;P&gt; define a / group; &lt;/P&gt;
&lt;P&gt; define b / group; &lt;/P&gt;
&lt;P&gt; define c / group;&lt;/P&gt;
&lt;P&gt;run; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what I'm looking for is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8582_b.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible with proc report? Or would you recomend tabulate? I'm not very familar with proc tabulate, so any help with proc report would very be very apreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169130#M12265</guid>
      <dc:creator>karolisb</dc:creator>
      <dc:date>2015-01-05T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169131#M12266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, with a bit of fidling you should be abel to get it right.&amp;nbsp; This shows putting RTF code into the text:&lt;/P&gt;&lt;P&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;ods rtf file="s:\temp\rob\z.rtf" style=statistical;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.class nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; columns ("Demo" name) ("^R'\brdrb\brdrs\brdrw15 'Demo" sex age) height weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define name / " " style(header)=[just=c bordertopcolor=white];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends a bit on your output destination.&amp;nbsp; Have a look through the style documentation, here is an example: &lt;A href="http://support.sas.com/resources/papers/stylesinprocs.pdf"&gt;http://support.sas.com/resources/papers/stylesinprocs.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may need to combine a few things. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169131#M12266</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-05T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169132#M12267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI:&lt;/P&gt;&lt;P&gt;&amp;nbsp; You did not mention your destination of interest. Is it RTF, PDF, HTML? You show the standard HTMLBLUE style, which is generally HTML output.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; The issue with PROC REPORT is that it will not make the header cell for column A span 2 rows in HTML or PDF. As RW9 shows, you might be able to cause spanning with RTF control strings. But the bottom line is that PROC REPORT makes each report row, including the header rows 1 row at a time. The reason the RTF solution might work is that RTF renders differently than output is rendered in the browser or in PDF.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; For HTML or PDF, this may be the best you can do (move section up and put a blank on the same row as subsection):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file="c:\temp\span.html"&amp;nbsp; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; columns ("Section" (" " name)) ("Another Section" ("Subsection" sex age)) ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define name / "a"&amp;nbsp; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define sex / 'b';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define age / 'c';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html close;&lt;/STRONG&gt;&lt;/SPAN&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>Mon, 05 Jan 2015 19:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169132#M12267</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-01-05T19:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169133#M12268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. If you need proc report so badly, here is a workaround i.e. change the html source code directly . Hope you like it.&lt;/P&gt;&lt;P&gt;It is appeared that SAS Forum will eat some character of my code . Download the attachment if you need .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="d.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8602_d.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="8598" alt="c.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8598_c.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 04:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169133#M12268</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-07T04:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169134#M12269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for respond.&lt;/P&gt;&lt;P&gt;I've tried your method, but it seems it doesn't work as expected :?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="a.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8605_a.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 09:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169134#M12269</guid>
      <dc:creator>karolisb</dc:creator>
      <dc:date>2015-01-07T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169135#M12270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you open&amp;nbsp; c:\temp\want.html&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 10:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169135#M12270</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-07T10:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169136#M12271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I did&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 13:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169136#M12271</guid>
      <dc:creator>karolisb</dc:creator>
      <dc:date>2015-01-07T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169137#M12272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got what you want now ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 13:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169137#M12272</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-07T13:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169138#M12273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look above what I've got, It's from .html... Somehow it looks different from yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 13:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169138#M12273</guid>
      <dc:creator>karolisb</dc:creator>
      <dc:date>2015-01-07T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169139#M12274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is weird . When I open &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;c:\temp\want.html &lt;/SPAN&gt; , it display the graph I posted . &lt;/P&gt;&lt;P&gt;Are you sure you open &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;c:\temp\want.html &lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169139#M12274</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-07T14:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169140#M12275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using University Edition ? Try this one . This time should be worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169140#M12275</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-07T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating proc report layout</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169141#M12276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, keep in mind that DATA _NULL_ output will &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/SPAN&gt; automatically "pop open" in a Results Window. So you will have to go outside of SAS to a browser or to Windows Explorer and explicitly find the WANT.HTML file and open it. Depending on how your Internet cache settings are defined, you may want to give it a new, unique name, so that you are not pulling up a cached copy without the spanning.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 22:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/manipulating-proc-report-layout/m-p/169141#M12276</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-01-07T22:44:33Z</dc:date>
    </item>
  </channel>
</rss>

