<?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: ODS RTF and PROC REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/536#M244</link>
    <description>Here's some general code that produces output similar to what I am currently getting. As mentioned before, it "works" on the output screen but not in the RTF output.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again&lt;BR /&gt;
Paula&lt;BR /&gt;
&lt;BR /&gt;
******************************************&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DATA ORIGINAL;&lt;BR /&gt;
	SET SASHELP.PRDSAL2;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
	CREATE TABLE NEW2 AS&lt;BR /&gt;
	SELECT COUNTRY,&lt;BR /&gt;
	       STATE,&lt;BR /&gt;
	       SUM(ACTUAL) AS ACTUALX,&lt;BR /&gt;
	       SUM(PREDICT) AS PREDICTEDX&lt;BR /&gt;
	FROM ORIGINAL&lt;BR /&gt;
	GROUP BY COUNTRY, STATE;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
	&lt;BR /&gt;
OPTIONS nodate&lt;BR /&gt;
	nonumber&lt;BR /&gt;
	missing = " " &lt;BR /&gt;
	orientation = landscape &lt;BR /&gt;
	papersize = legal&lt;BR /&gt;
	leftmargin = .5in&lt;BR /&gt;
	rightmargin = .15in&lt;BR /&gt;
	nobyline; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF file= 'C:\TEST.RTF'  style = JOURNAL;&lt;BR /&gt;
PROC REPORT DATA = new2 NOWD LS = 255 SPLIT = '*'  ;&lt;BR /&gt;
TITLE height = 18pt&lt;BR /&gt;
			"Country Summary  "; 			&lt;BR /&gt;
	COLUMN  Country&lt;BR /&gt;
		State&lt;BR /&gt;
		Actualx						        Predictedx;&lt;BR /&gt;
	 DEFINE COUNTRY / GROUP;&lt;BR /&gt;
	 DEFINE STATE / GROUP;&lt;BR /&gt;
	 DEFINE ACTUALX / "Actual Cost";&lt;BR /&gt;
	 Define Predictedx / "Predicted Cost";&lt;BR /&gt;
	 break after country / ul skip;&lt;BR /&gt;
	 run;&lt;BR /&gt;
ODS RTF CLOSE;</description>
    <pubDate>Wed, 03 May 2006 14:24:39 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-05-03T14:24:39Z</dc:date>
    <item>
      <title>ODS RTF and PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/534#M242</link>
      <description>My issue is I am trying to create a report (using PROC REPORT), output to either PDF or RTF. The style I'm using is journal but what I would like to do is to stack them differently and make a line between groupings. I can get the line the way I want it in the output screen but not on my ODS output, and I can't figure out how to get the two columns stacked. What am I doing wrong? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My report currently outputs this way (it's more indented but I can't replicate the output here)&lt;BR /&gt;
&lt;BR /&gt;
CURRENT ISSUES   Q1.  LOCATION      RATED A 5&lt;BR /&gt;
                 Q2.  RESOURCES     RATED A 3&lt;BR /&gt;
FUTURE ISSUES    Q3.  SUPPLY        RATED A 9&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
What I would like the output to look like is this (if possible with a line or space between the two headings). &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
CURRENT ISSUES &lt;BR /&gt;
Q1. Locations             Rated a 5     &lt;BR /&gt;
Q2. Resources             Rated a 3 &lt;BR /&gt;
---------------------------------- &lt;BR /&gt;
FUTURE ISSUES           &lt;BR /&gt;
Q3. Supply                Rated a 9 &lt;BR /&gt;
Q4. Demand                Rated a 3 &lt;BR /&gt;
------------------------------------- &lt;BR /&gt;
Q6. Overall Summary       Rated a 5 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions? Thanks so much for the help. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Paula</description>
      <pubDate>Tue, 02 May 2006 15:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/534#M242</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-05-02T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF and PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/535#M243</link>
      <description>Can you show us some of the code you're using to produce the report?</description>
      <pubDate>Tue, 02 May 2006 17:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/535#M243</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2006-05-02T17:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF and PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/536#M244</link>
      <description>Here's some general code that produces output similar to what I am currently getting. As mentioned before, it "works" on the output screen but not in the RTF output.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again&lt;BR /&gt;
Paula&lt;BR /&gt;
&lt;BR /&gt;
******************************************&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DATA ORIGINAL;&lt;BR /&gt;
	SET SASHELP.PRDSAL2;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
	CREATE TABLE NEW2 AS&lt;BR /&gt;
	SELECT COUNTRY,&lt;BR /&gt;
	       STATE,&lt;BR /&gt;
	       SUM(ACTUAL) AS ACTUALX,&lt;BR /&gt;
	       SUM(PREDICT) AS PREDICTEDX&lt;BR /&gt;
	FROM ORIGINAL&lt;BR /&gt;
	GROUP BY COUNTRY, STATE;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
	&lt;BR /&gt;
OPTIONS nodate&lt;BR /&gt;
	nonumber&lt;BR /&gt;
	missing = " " &lt;BR /&gt;
	orientation = landscape &lt;BR /&gt;
	papersize = legal&lt;BR /&gt;
	leftmargin = .5in&lt;BR /&gt;
	rightmargin = .15in&lt;BR /&gt;
	nobyline; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF file= 'C:\TEST.RTF'  style = JOURNAL;&lt;BR /&gt;
PROC REPORT DATA = new2 NOWD LS = 255 SPLIT = '*'  ;&lt;BR /&gt;
TITLE height = 18pt&lt;BR /&gt;
			"Country Summary  "; 			&lt;BR /&gt;
	COLUMN  Country&lt;BR /&gt;
		State&lt;BR /&gt;
		Actualx						        Predictedx;&lt;BR /&gt;
	 DEFINE COUNTRY / GROUP;&lt;BR /&gt;
	 DEFINE STATE / GROUP;&lt;BR /&gt;
	 DEFINE ACTUALX / "Actual Cost";&lt;BR /&gt;
	 Define Predictedx / "Predicted Cost";&lt;BR /&gt;
	 break after country / ul skip;&lt;BR /&gt;
	 run;&lt;BR /&gt;
ODS RTF CLOSE;</description>
      <pubDate>Wed, 03 May 2006 14:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/536#M244</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-05-03T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF and PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/537#M245</link>
      <description>Paula, &lt;BR /&gt;
&lt;BR /&gt;
First, I apologize for such a delayed response. Somehow I missed that you had updated this topic.&lt;BR /&gt;
&lt;BR /&gt;
The reason you see a line between each group of states on the Output window and not in RTF is that the UL option only affects "traditional monospace output," not RTF, PDF, etc. This is of course because UL &lt;I&gt;really&lt;/I&gt; means "a bunch of dashes" which isn't very meaningful to or attractive in modern output formats. What &lt;I&gt;would&lt;/I&gt; be meaningful and attractive would be a "text_decoration=underline" style attribute (or something similar) but that's not available in 9.1.3. However, you said a space between groups would be okay and you can do that by using a COMPUTE block to print a blank line after each group of states.&lt;BR /&gt;
&lt;BR /&gt;
Also (if I understand correctly) you want the Country values to appear directly above the State values. Again, you can use a COMPUTE block to print the value of Country (left-justified and in the same style as the state values) before each group of states. Since the Country value is displayed courtesy of a LINE statement, you will need to suppress the normal display of the Country column by adding NOPRINT to Country's DEFINE statement.&lt;BR /&gt;
&lt;BR /&gt;
Here's your code with the changes I've suggested. Please let me know if this works for you, and I'll try to figure out how to get this forum software to tell me when you update the thread.&lt;BR /&gt;
&lt;BR /&gt;
PROC REPORT DATA = new2 NOWD LS = 255 SPLIT = '*' ;&lt;BR /&gt;
TITLE height = 18pt&lt;BR /&gt;
"Country Summary ";&lt;BR /&gt;
COLUMN Country&lt;BR /&gt;
State&lt;BR /&gt;
Actualx Predictedx;&lt;BR /&gt;
DEFINE COUNTRY / GROUP noprint;&lt;BR /&gt;
DEFINE STATE / GROUP;&lt;BR /&gt;
DEFINE ACTUALX / "Actual Cost";&lt;BR /&gt;
Define Predictedx / "Predicted Cost";&lt;BR /&gt;
compute before country / style=data {just=l};&lt;BR /&gt;
	line country $22.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
compute after country;&lt;BR /&gt;
	line ' ';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 05 May 2006 19:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-and-PROC-REPORT/m-p/537#M245</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2006-05-05T19:21:54Z</dc:date>
    </item>
  </channel>
</rss>

