<?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 ODS rtf output formatting in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-output-formatting/m-p/41952#M5685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to the communities and still have a lot to learn about SAS. I am running a simple procedure to look at the frequencies of variables in a dataset and then to do a crosstab of the outcome of interest with all the variables in the dataset. I am new to writing ODS output statements and can write a simple statement but was wondering if someone could help me with formatting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically with the proc frec procedure I want to do basic descriptives and then have one table that has the variable names, formatting and then the frequency and percent only without the cumulative frequency or percent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then with the proc freq procedure I will run a crosstab with the outcome of interest by all the variables and I want the table to show those results in an ODS output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this most efficiently? Thank you in advance for your help! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard, MPH/MA, PhD candidate &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 18:42:04 GMT</pubDate>
    <dc:creator>rfarmenta</dc:creator>
    <dc:date>2011-08-03T18:42:04Z</dc:date>
    <item>
      <title>ODS rtf output formatting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-output-formatting/m-p/41952#M5685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to the communities and still have a lot to learn about SAS. I am running a simple procedure to look at the frequencies of variables in a dataset and then to do a crosstab of the outcome of interest with all the variables in the dataset. I am new to writing ODS output statements and can write a simple statement but was wondering if someone could help me with formatting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically with the proc frec procedure I want to do basic descriptives and then have one table that has the variable names, formatting and then the frequency and percent only without the cumulative frequency or percent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then with the proc freq procedure I will run a crosstab with the outcome of interest by all the variables and I want the table to show those results in an ODS output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this most efficiently? Thank you in advance for your help! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard, MPH/MA, PhD candidate &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-output-formatting/m-p/41952#M5685</guid>
      <dc:creator>rfarmenta</dc:creator>
      <dc:date>2011-08-03T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf output formatting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-output-formatting/m-p/41953#M5686</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; I'm not sure what you mean by an "ODS output" -- since you have ODS RTF in the title of your post, I figure you already know the basic "sandwich" technique:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='xxx.rtf' style=journal;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** proc freq code;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, PROC FREQ has options (NOCUM, NOPERCENT, etc) that allow you to tailor the output from PROC FREQ. Normally, when folks talk about ODS "output" they mean 1 of 2 things: the ODS "output" file -- i.e., the RTF file that you get from using the "sandwich" or they mean creating a SAS dataset from the ODS "OUTPUT" destination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a paper that talks about using PROC FREQ:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nesug.org/proceedings/nesug07/ff/ff07.pdf"&gt;http://www.nesug.org/proceedings/nesug07/ff/ff07.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here's a few&amp;nbsp; papers that talk about using ODS TRACE and the ODS OUTPUT destination to create SAS datasets (but if you're talking about getting a crosstab report, generally, to me, that implies the RTF file):&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nesug.org/proceedings/nesug07/cc/cc30.pdf"&gt;http://www.nesug.org/proceedings/nesug07/cc/cc30.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/086-2008.pdf"&gt;http://www2.sas.com/proceedings/forum2008/086-2008.pdf&lt;/A&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>Thu, 04 Aug 2011 12:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-output-formatting/m-p/41953#M5686</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-08-04T12:50:02Z</dc:date>
    </item>
  </channel>
</rss>

