<?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 : How to create more than one tables that use different data sets in one proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/275826#M16016</link>
    <description>&lt;P&gt;Proc report will not use two or more datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm pretty sure you are leaving something out as I see and ODS HTML destination opened but the ODS PDF Close.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need text that doesn't work with Titles you might try either ODS TEXT, which with ESCAPECHAR can modify style elements such as font, font size, font weight, font color and a host other things with enough work. Similar with footnotes. I believe that footnotes work a bit differently with other destinations. Since HTML doesn't really have a concept of page you may get more footnotes than wanted. Would RTF or PDF work instead of HTML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you may be able to use Style Pretext and PostText elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Space between procedure output depends on a number of things, active style, font and some other stuff depending on destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2016 22:40:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-07T22:40:06Z</dc:date>
    <item>
      <title>PROC REPORT : Create multiple tables using multiple proc reports and combine them into one HTML/PDF/</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/275817#M16015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp;create a report using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/*--------------Final Report--------------*/
ods html file="MONTHLY_SNAPSHOT.htm" style=festival ;
options label ;
title1 'MONTHLY EXECUTIVE SNAPSHOT';
footnote1 ' ';

/*----Total Balance by Program----*/

proc report data=bal missing nowd headskip split="~" spanrows 

	style(report)=[background=white cellspacing=1  borderwidth=2 bordercolor=blue   ]

	style(header)=[color=Black
	fontsize=2]

	style(column)=[color=Black fontfamily=helvetica fontsize=1.8];
	
	title2 'Total Balance by Program';
	column Product Balance,RECORD_DATE;
	define product / group "Product"    style(header)=[textalign=r] style(column)=[fontsize = 2 textalign=r cellwidth=0.75in] ;
	define RECORD_DATE / across order=data 'Month';
	define balance / analysis '' style=[fontsize = 2];
	rbreak after /summarize style=[fontweight=bold fontsize = 2];

	compute after;
		product='Total';
	endcomp;

	
run;

/*----Total No. of Loans by Program----*/

proc report data=LOANS missing nowd headskip split="~" spanrows

	style(report)=[background=white cellspacing=1  borderwidth=2 bordercolor=blue   ]

	style(header)=[color=Black
	fontsize=2]

	style(column)=[color=Black
	fontfamily=helvetica fontsize=1.8];
	title1 'Total # Loans by Program';
	column Product '#'n,RECORD_DATE;
	define product / group "Product"    style(header)=[textalign=r] style(column)=[fontsize = 2 textalign=r cellwidth=0.75in];
	define RECORD_DATE / across order=data 'Month';
	define '#'n / analysis '' style=[fontsize = 2];
	rbreak after /summarize style=[fontweight=bold fontsize = 2];

	compute after;
		product='Total';
	endcomp;

	footnote1 ' ';
run;

/*----Monthly Originations by Program----*/

proc report data=Originations missing nowd headskip split="~" spanrows

	style(report)=[background=white cellspacing=1  borderwidth=2 bordercolor=blue   ]

	style(header)=[color=Black
	fontsize=2]

	style(column)=[color=Black
	fontfamily=helvetica fontsize=1.8];
	title1 'Monthly Originations by Program';
	column Product Originations,RECORD_DATE;
	define product / group "Product"    style(header)=[textalign=r] style(column)=[fontsize = 2 textalign=r cellwidth=0.75in] ;
	define RECORD_DATE / across order=data 'Month';
	define originations / analysis '' style=[fontsize = 2];
	rbreak after /summarize style=[fontweight=bold fontsize = 2];

	compute after;
		product='Total';
	endcomp;

	footnote1 ' ';
run;

/*----Monthly # Loan by Program----*/

proc report data=NumOriginations missing nowd headskip split="~" spanrows

	style(report)=[background=white cellspacing=1  borderwidth=2 bordercolor=blue   ]

	style(header)=[color=Black
	fontsize=2]

	style(column)=[color=Black
	fontfamily=helvetica fontsize=1.8];
	title1 'Monthly # Loan Originations by Program';
	column Product '#'n,RECORD_DATE;
	define product / group "Product"    style(header)=[textalign=r] style(column)=[fontsize = 2 textalign=r cellwidth=0.75in] ;
	define RECORD_DATE / across order=data 'Month';
	define '#'n / analysis '' style=[fontsize = 2];
	rbreak after /summarize style=[fontweight=bold fontsize = 2];

	compute after;
		product='Total';
	endcomp;

	footnote1 'COMPANY NAME';
	FOOTNOTE2 "Generated by SAS on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";
run;

ods pdf close;
ods listing;&lt;/PRE&gt;&lt;P&gt;Some issues I am unable to tackle:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. As can be seen, i have 4 different proct reports and those get combined into a single htm. How can I do it more efficiently because there is too much space between the 4 tables in the final output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The titles &amp;amp; footnotes - Trying to get&amp;nbsp;a single global title and 4 individual titles before each table&amp;nbsp;AND&amp;nbsp;only *one* global footnote (no individual footnotes). Hance the &lt;STRONG&gt;footnote1' &amp;nbsp; ' ;&lt;/STRONG&gt; &amp;nbsp; after every proc report (*sigh*).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/275817#M16015</guid>
      <dc:creator>karush</dc:creator>
      <dc:date>2016-06-08T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT : How to create more than one tables that use different data sets in one proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/275826#M16016</link>
      <description>&lt;P&gt;Proc report will not use two or more datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm pretty sure you are leaving something out as I see and ODS HTML destination opened but the ODS PDF Close.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need text that doesn't work with Titles you might try either ODS TEXT, which with ESCAPECHAR can modify style elements such as font, font size, font weight, font color and a host other things with enough work. Similar with footnotes. I believe that footnotes work a bit differently with other destinations. Since HTML doesn't really have a concept of page you may get more footnotes than wanted. Would RTF or PDF work instead of HTML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you may be able to use Style Pretext and PostText elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Space between procedure output depends on a number of things, active style, font and some other stuff depending on destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 22:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/275826#M16016</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-07T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT : How to create more than one tables that use different data sets in one proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/276011#M16023</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;&amp;nbsp;- Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ODS TEXT and changed it to PDF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much better now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Create-multiple-tables-using-multiple-proc-reports/m-p/276011#M16023</guid>
      <dc:creator>karush</dc:creator>
      <dc:date>2016-06-08T15:53:59Z</dc:date>
    </item>
  </channel>
</rss>

