<?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 Proc Report - Two reports on 1 page in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30412#M7222</link>
    <description>I am trying to get 2 reports onto the same page. When I add the startpage=no I get both on the page, but report 2's title doesn't show. Any suggestions? I have provided the code below....&lt;BR /&gt;
&lt;BR /&gt;
options nodate nonumber ;&lt;BR /&gt;
ods pdf file="C:\PC_SAS\Page 3 Testing.pdf" style=Custom startpage=no;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
&lt;BR /&gt;
proc report data=example8 nowd split='*' missing &lt;BR /&gt;
style(report)={ outputwidth=7 in}&lt;BR /&gt;
style(summary)={just=center htmlstyle="border-top:2px thick double black"}&lt;BR /&gt;
style(header)=header{just=center background=ligr font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=bold};&lt;BR /&gt;
 title1&lt;BR /&gt;
      j=c '^S={preimage="D:\Documents and Settings\amr\Desktop\HReport\Logo For Top Of Report.jpg"}'&lt;BR /&gt;
	  j=c ' '&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c 'Dealer: 0415'&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c '^S={background=ligr }Where are your customers spending?'&lt;BR /&gt;
	  j=c  ' '&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c  'Net Purchases (01/08-12/08):'&lt;BR /&gt;
	  j=c ' '&lt;BR /&gt;
	  j=c '______________________________________________________'&lt;BR /&gt;
	  j=c '        Whos taking money out of your pocket?         '&lt;BR /&gt;
      j=c '  Competitive Retail Store Spending (Top 5 locations) '&lt;BR /&gt;
	  j=c '______________________________________________________';&lt;BR /&gt;
 column flavor calories price;&lt;BR /&gt;
 define flavor/order;&lt;BR /&gt;
 define price/ sum;&lt;BR /&gt;
 rbreak after/summarize ol skip;&lt;BR /&gt;
compute after;&lt;BR /&gt;
 flavor = 'Total';&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report data=example8 nowd split='*' missing&lt;BR /&gt;
style(report)={ outputwidth=7 in}&lt;BR /&gt;
style(summary)={just=center htmlstyle="border-top:2px thick double black"}&lt;BR /&gt;
style(header)=header{just=center background=white font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=bold}&lt;BR /&gt;
style(column)={just=center background=white font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=medium};&lt;BR /&gt;
 title1&lt;BR /&gt;
      j=c 'Where are your customers Using their HD cards?'&lt;BR /&gt;
      j=c  ' ';&lt;BR /&gt;
&lt;BR /&gt;
 column flavor calories price;&lt;BR /&gt;
 define flavor/order;&lt;BR /&gt;
 define price/ sum;&lt;BR /&gt;
 footnote1 j=r 'Page ^{thispage} of 4';&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods listing;</description>
    <pubDate>Mon, 14 Dec 2009 20:50:43 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-12-14T20:50:43Z</dc:date>
    <item>
      <title>Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30412#M7222</link>
      <description>I am trying to get 2 reports onto the same page. When I add the startpage=no I get both on the page, but report 2's title doesn't show. Any suggestions? I have provided the code below....&lt;BR /&gt;
&lt;BR /&gt;
options nodate nonumber ;&lt;BR /&gt;
ods pdf file="C:\PC_SAS\Page 3 Testing.pdf" style=Custom startpage=no;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
&lt;BR /&gt;
proc report data=example8 nowd split='*' missing &lt;BR /&gt;
style(report)={ outputwidth=7 in}&lt;BR /&gt;
style(summary)={just=center htmlstyle="border-top:2px thick double black"}&lt;BR /&gt;
style(header)=header{just=center background=ligr font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=bold};&lt;BR /&gt;
 title1&lt;BR /&gt;
      j=c '^S={preimage="D:\Documents and Settings\amr\Desktop\HReport\Logo For Top Of Report.jpg"}'&lt;BR /&gt;
	  j=c ' '&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c 'Dealer: 0415'&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c '^S={background=ligr }Where are your customers spending?'&lt;BR /&gt;
	  j=c  ' '&lt;BR /&gt;
	  j=c '  '&lt;BR /&gt;
      j=c  'Net Purchases (01/08-12/08):'&lt;BR /&gt;
	  j=c ' '&lt;BR /&gt;
	  j=c '______________________________________________________'&lt;BR /&gt;
	  j=c '        Whos taking money out of your pocket?         '&lt;BR /&gt;
      j=c '  Competitive Retail Store Spending (Top 5 locations) '&lt;BR /&gt;
	  j=c '______________________________________________________';&lt;BR /&gt;
 column flavor calories price;&lt;BR /&gt;
 define flavor/order;&lt;BR /&gt;
 define price/ sum;&lt;BR /&gt;
 rbreak after/summarize ol skip;&lt;BR /&gt;
compute after;&lt;BR /&gt;
 flavor = 'Total';&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report data=example8 nowd split='*' missing&lt;BR /&gt;
style(report)={ outputwidth=7 in}&lt;BR /&gt;
style(summary)={just=center htmlstyle="border-top:2px thick double black"}&lt;BR /&gt;
style(header)=header{just=center background=white font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=bold}&lt;BR /&gt;
style(column)={just=center background=white font_size=10pt font_face="TimesRoman"&lt;BR /&gt;
font_weight=medium};&lt;BR /&gt;
 title1&lt;BR /&gt;
      j=c 'Where are your customers Using their HD cards?'&lt;BR /&gt;
      j=c  ' ';&lt;BR /&gt;
&lt;BR /&gt;
 column flavor calories price;&lt;BR /&gt;
 define flavor/order;&lt;BR /&gt;
 define price/ sum;&lt;BR /&gt;
 footnote1 j=r 'Page ^{thispage} of 4';&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods listing;</description>
      <pubDate>Mon, 14 Dec 2009 20:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30412#M7222</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-14T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30413#M7223</link>
      <description>Hi:&lt;BR /&gt;
  This is the way that ODS PDF works. If you want to write a "pseudo-title", use either ODS PDF TEXT= (SAS 9.1.3) or ODS TEXT= (SAS 9.2):&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf .... startpage=no;&lt;BR /&gt;
  ** proc report 1;&lt;BR /&gt;
           &lt;BR /&gt;
  ods pdf text='Where are your customers using their HD cards? ';&lt;BR /&gt;
  ods pdf text= ' ';&lt;BR /&gt;
                 &lt;BR /&gt;
  ** proc report 2;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                   &lt;BR /&gt;
If you are already using a custom style template (which it looks like you are), then you can modify the UserText style element to center justify and bold the text and change the font:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  style UserText from UserText/&lt;BR /&gt;
     font_face='Helvetica'&lt;BR /&gt;
     font_weight=bold&lt;BR /&gt;
     just=c;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                      &lt;BR /&gt;
  You may have noticed that the HTMLSTYLE= attributes that you are using do not have an impact on your ODS PDF output. However, if you are running in SAS 9.2, you -can- use CSS style properties in a CSS file to impact your PDF report -- you might try the CSSSTYLE option in SAS 9.2 if you need to use CSS attributes to set table elements.&lt;BR /&gt;
 &lt;BR /&gt;
  It looks to me like you want to simulate an "overline" above your summary with the HTMLSTYLE code -- HTMLSTYLE only works with ODS HTML or Markup family destinations that support the specification of CSS style properties, as documented here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002972093.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002972093.htm&lt;/A&gt; (look for HTMLSTYLE in the list of style attributes)&lt;BR /&gt;
                     &lt;BR /&gt;
&lt;BR /&gt;
You might investigate the text-decoration attribute with ODS PDF, instead. Starting in SAS 9.2, it is available and will overline and underline text with ODS PDF, as described on page 4 of this paper:&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/sgf2008/odspdf.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/sgf2008/odspdf.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
As an alternative, also in SAS 9.2, using bordertopstyle and bordertopcolor attributes worked for me as shown in the program below to simulate an overline above a summary -- I put the overline in cyan so it would stand out.&lt;BR /&gt;
 &lt;BR /&gt;
 cynthia&lt;BR /&gt;
               &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='c:\temp\overline.pdf' style=journal;&lt;BR /&gt;
 &lt;BR /&gt;
  proc report data=sashelp.class nowd&lt;BR /&gt;
       style(summary)={bordertopstyle=solid bordertopcolor=cyan};&lt;BR /&gt;
       column name age height sex;&lt;BR /&gt;
       rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 14 Dec 2009 23:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30413#M7223</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-14T23:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30414#M7224</link>
      <description>The ODS PDF worked great! Thank you.&lt;BR /&gt;
&lt;BR /&gt;
 Is there a way to get rid of the lines around the report? Currently the output looks like an excel sheet.</description>
      <pubDate>Tue, 15 Dec 2009 14:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30414#M7224</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-15T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30415#M7225</link>
      <description>Also a way to put box around a title or ods pdf text? I'm in 9.1.3.</description>
      <pubDate>Tue, 15 Dec 2009 14:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30415#M7225</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-15T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30416#M7226</link>
      <description>Hi:&lt;BR /&gt;
  To get rid of the interior table lines in the report, try the JOURNAL style, as shown in my code snippet.&lt;BR /&gt;
 &lt;BR /&gt;
  Alternately, if you just want to remove all the interior table lines without changing what you currently specify in STYLE=, use PROC REPORT STYLE= overrides:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  proc report data=xxx.yyy nowd&lt;BR /&gt;
        style(report0={outputwidth=7in rules=none frame=void cellspacing=0};&lt;BR /&gt;
      . . . rest of report code . . . &lt;BR /&gt;
  run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                   &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 15 Dec 2009 15:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30416#M7226</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-15T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Two reports on 1 page</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30417#M7227</link>
      <description>Hi:&lt;BR /&gt;
  I believe that to put a box around the SAS Title text or the text string specified by ODS PDF TEXT=, you have to change the style template using Style Template 9.1.3 syntax, as described in this paper:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/132-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/132-30.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  The snippet of code that I included previously would have to be changed for UserText and you'd also have to change the style template for the SystemTitle and possibly the TitleandNoteContainer elements. Since you are using a custom style template (your original code posted had STYLE=CUSTOM), you might also work with the person who wrote the CUSTOM template to alter it so that boxes are put around the title and user text. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 15 Dec 2009 16:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Two-reports-on-1-page/m-p/30417#M7227</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-15T16:05:44Z</dc:date>
    </item>
  </channel>
</rss>

