<?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: How can i create RTF file? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396721#M66545</link>
    <description>&lt;P&gt;You can also&amp;nbsp;let &lt;STRONG&gt;proc tabulate&lt;/STRONG&gt; generate the pages for you, for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="&amp;amp;sasforum.\Reports\tabulate report.rtf" style=journal;
options nodate nonumber;
Title "Sashelp.class statistics";
proc tabulate data=sashelp.class format=6.1;
class sex;
var height weight;
table 
    median="Median" p95="Upper quartile 5%" p5="Lower quartile 5%", 
    sex all, 
    height weight;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 Sep 2017 03:29:30 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-09-18T03:29:30Z</dc:date>
    <item>
      <title>How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396716#M66542</link>
      <description>&lt;P&gt;Hi i have 3 different tabulate tables in here&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i don't know how to create RTF output that i want to make.&lt;/P&gt;&lt;P&gt;And i want to make output pretty as much as possible through ODS function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me pls?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1 "median";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, median*(CURRENT_BALANCE weekint);
run;
*Question 1(e);
*For upper quartile 5%;
title1 "upper quartile";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, P95*(CURRENT_BALANCE weekint);
run;

*For lower quartile 5%;
title1 "lower quartile";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, P5*(CURRENT_BALANCE weekint);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here's my output how it looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처.JPG" style="width: 331px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15238i0AC120D56728BE01/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처1.JPG" style="width: 337px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15237i5609C2FBD3850C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처1.JPG" alt="캡처1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 01:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396716#M66542</guid>
      <dc:creator>glee217</dc:creator>
      <dc:date>2017-09-18T01:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396718#M66543</link>
      <description>&lt;P&gt;ODS is pretty straightforward.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a link to the the ODS Cheat Sheet for RTF:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without know how you want to 'style' your RTF its difficult to help beyond this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should get you started, rather than fully customize your style, I would suggest picking the style that's closes and modifying that. I find MEADOW and SEASIDE the best options for work reports, they're clear and not too flashy which looks juvenile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file='/folders/myfolders/mySample.rtf' style=meadow;

title1 "median";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, median*(CURRENT_BALANCE weekint);
run;
*Question 1(e);
*For upper quartile 5%;
title1 "upper quartile";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, P95*(CURRENT_BALANCE weekint);
run;

*For lower quartile 5%;
title1 "lower quartile";
proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, P5*(CURRENT_BALANCE weekint);
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 02:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396718#M66543</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-18T02:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396719#M66544</link>
      <description>I have a question for locating file name.&lt;BR /&gt;&lt;BR /&gt;Do i have to give them a name for physical data that i've referred to make&lt;BR /&gt;"proc tabulate data="?&lt;BR /&gt;&lt;BR /&gt;Or is this arbitrary location that i will put my output as RTF after output?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If it's data name that i've used to create proc tabulate, i don't know how&lt;BR /&gt;to extract the address&lt;BR /&gt;cause it's in work as temporary file...:/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Sep 2017 02:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396719#M66544</guid>
      <dc:creator>glee217</dc:creator>
      <dc:date>2017-09-18T02:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396721#M66545</link>
      <description>&lt;P&gt;You can also&amp;nbsp;let &lt;STRONG&gt;proc tabulate&lt;/STRONG&gt; generate the pages for you, for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="&amp;amp;sasforum.\Reports\tabulate report.rtf" style=journal;
options nodate nonumber;
Title "Sashelp.class statistics";
proc tabulate data=sashelp.class format=6.1;
class sex;
var height weight;
table 
    median="Median" p95="Upper quartile 5%" p5="Lower quartile 5%", 
    sex all, 
    height weight;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Sep 2017 03:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396721#M66545</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-18T03:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396799#M66558</link>
      <description>&lt;PRE&gt;
Another option.



ods tagsets.rtf file='c:\temp\x.rtf';
proc print data=sashelp.class;run;
ods tagsets.rtf close;


&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Sep 2017 13:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396799#M66558</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-18T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create RTF file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396807#M66559</link>
      <description>Hi:&lt;BR /&gt;  There is a difference between what you specify on data= in a PROC step -- that is the name of the INPUT data set and what you specify on FILE= in the ODS statement -- that is the OUTPUT destination file or OUTPUT report file.&lt;BR /&gt;&lt;BR /&gt;  The data= reference is OK to be in WORK because after ODS is done making the output from PROC TABULATE, it does not need the WORK data any longer. You open the file name specified in the FILE= option to get the "pretty" or RTF version of the file.&lt;BR /&gt;&lt;BR /&gt;  You need to decide on what to use for the FILE= option -- that name is under your control -- where do YOU want to write the RTF file?&lt;BR /&gt;&lt;BR /&gt;  In an earlier post, you said: "And i want to make output pretty as much as possible through ODS function." Reeza gave you some good suggestions -- but what do you mean by "pretty" and what do you mean by "as much as possible" -- you need to make the font 24 pt and red? &lt;BR /&gt;&lt;BR /&gt;  Look at pages 18-21 of this paper: &lt;A href="http://support.sas.com/resources/papers/proceedings13/366-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt; -- it covers style overrides with PROC TABULATE -- by starting from a fairly garish example to show you exactly how to touch every area in a TABULATE report.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 18 Sep 2017 13:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-RTF-file/m-p/396807#M66559</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-09-18T13:28:21Z</dc:date>
    </item>
  </channel>
</rss>

