<?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 Formatting Crosstabs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7955#M261</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 agree with Art -- the structure of the data is going to make a difference when you are trying to create survey tables. If you need page numbers, then you don't want to go down the HTML road. You should probably stick with PDF or RTF destinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't have a lot to add. I do have a few observations, though. Almost all my questions from students who are doing surveys are about using PROC TABULATE or PROC REPORT for the survey tables instead of using PROC FREQ. There's a TABULATE example in the doc about creating multi-response survey tables. When your data are structured so that you have 1 obs with Q1, Q2, Q3 individual variables, it leads to needing multiple TABLE statements or multiple procedure steps. But if your data were in a slightly different structure, then TABULATE could do it with BY and/or PAGE processing and REPORT could do it with BY or PAGE processing -- no TABLE template needed. TABULATE and REPORT both have ways to directly provide a format (without a TABLE template) and they both have ways to provide a "header" on top of each table (TABULATE with PAGE dimension, REPORT with COMPUTE BEFORE). Even FREQ could take data in a different structure and produce multiple tables if you just used BY group processing (such as BY QUESTION).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, for changing fonts, both TABULATE and REPORT have the STYLE= overrides. If you can get what you want out of FREQ and you only have 3 questions, then that's probably an acceptable approach, but TABLE templates and STYLE templates will be an extra learning curve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But if you have something closer to 50-100 questions, then I'd recommend taking a look at some of this information and the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; These papers discuss the production of survey "books" or survey tables:&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/150-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/150-2009.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://analytics.ncsu.edu/sesug/2010/CC02.Go.pdf"&gt;http://analytics.ncsu.edu/sesug/2010/CC02.Go.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.nesug.org/proceedings/nesug05/ap/ap18.pdf"&gt;http://www.nesug.org/proceedings/nesug05/ap/ap18.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/172-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/172-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/091-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/091-30.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/194-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/194-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi23/Posters/p184.pdf"&gt;http://www2.sas.com/proceedings/sugi23/Posters/p184.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; And, the TABULATE doc even has an example of producing output for multi-response survey data:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1mcul17bwwvfhn19hoojfbxp2oy.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1mcul17bwwvfhn19hoojfbxp2oy.htm&lt;/A&gt;&lt;BR /&gt;and a Tech Support note on restructuring your data: &lt;A href="http://support.sas.com/techsup/technote/ts277.html"&gt;http://support.sas.com/techsup/technote/ts277.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 17:52:53 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-02-21T17:52:53Z</dc:date>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7948#M254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I have a series of crosstab tables I would like to format for a report. All I want is to is change the font,add % signs, add titles for all the questions and sections and add page numbers.&amp;nbsp; I have been trying to figure out proc template but I’m been having trouble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;This is an example of what I'm trying to format. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;SECTION ONE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;How long have you lived XYZ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;procfreq data=work.data; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;tablesOffice*Q1 / norow nocol; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;Do you like to read?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;procfreq data=work.data; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;tablesOffice*Q2 / norow nocol; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;SECTION TWO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;Do you like to play chess?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;procfreq data=work.data; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;tablesOffice*Q3 / norow nocol; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;What is your favorite restaurant?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;procfreq data=work.data; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;tablesOffice*Q4 / norow nocol; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Here is an example of the code Ihave being experimenting with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG&gt;template&lt;/STRONG&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;definecrosstabs Base.Freq.CrossTabFreqs; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;cell_style={font=fonts('Arial Narrow') foreground= whatever }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;row_total_style={foreground=whatever};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;col_total_style={foreground=whatever }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;grand_total_style={foreground=whatever }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;odslisting close; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;odshtml file=test.pdf; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 16:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7948#M254</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-02-20T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7949#M255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you taken a look at: &lt;A href="http://support.sas.com/resources/papers/freq92.pdf"&gt;http://support.sas.com/resources/papers/freq92.pdf&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows how to do much, if not all, of the things you want to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 17:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7949#M255</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-20T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7950#M256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have. That's exactly what I was looking at. If you notice the example code I'm useing, its from that paper. I'm still have trouble figureing it out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 17:23:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7950#M256</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-02-20T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7951#M257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I know everything that you want to change.&amp;nbsp; Is the following at least close?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; picture pctfmt (round) other='009.9%';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define crosstabs Base.Freq.CrossTabFreqs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define header myheader;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text 'How long have you lived XYZ?';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cellvalue frequency percent rowpercent colpercent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define frequency;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header='Count';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define percent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=pctfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header='Overall %';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define rowpercent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=pctfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header='Row %';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define colpercent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=pctfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header='Col %';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods html file='body.html';&lt;/P&gt;&lt;P&gt;title 'SECTION ONE';&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;tables sex*age/ norow nocol;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 17:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7951#M257</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-20T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7952#M258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is great, thanks so much. I am away from my computer so I can't test this out. I do have a few questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is "myheader"&amp;nbsp; a statement? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I repeat this process with every crosstab for every question I want to run frequencies for? Since every question has a different title and the ODS statment only has one crosstab, I'm a little confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I change the font?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 21:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7952#M258</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-02-20T21:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7953#M259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is defined, among other places, at: &lt;A href="http://www.pharmasug.org/proceedings/2011/SAS/PharmaSUG-2011-SAS-HW01.pdf"&gt;http://www.pharmasug.org/proceedings/2011/SAS/PharmaSUG-2011-SAS-HW01.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than alter then original "header" it creates a new header called "myheader"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the font by adding a style statement.&amp;nbsp; I think there were a number of such examples in the original reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they aren't clear, restate the question using sashelp.class as the data and the code you ran, and indicate which font(s) you want to change and the fonts you want to replace them with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not an expert with templates.&amp;nbsp; I would only know how to do it by redoing the process for each question.&amp;nbsp; Of course, you could always create a macro and just pass the different info to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 21:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7953#M259</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-20T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7954#M260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as i get back to my computer, i wil try this out and let you know. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 05:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7954#M260</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-02-21T05:36:56Z</dc:date>
    </item>
    <item>
      <title>Formatting Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7955#M261</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 agree with Art -- the structure of the data is going to make a difference when you are trying to create survey tables. If you need page numbers, then you don't want to go down the HTML road. You should probably stick with PDF or RTF destinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't have a lot to add. I do have a few observations, though. Almost all my questions from students who are doing surveys are about using PROC TABULATE or PROC REPORT for the survey tables instead of using PROC FREQ. There's a TABULATE example in the doc about creating multi-response survey tables. When your data are structured so that you have 1 obs with Q1, Q2, Q3 individual variables, it leads to needing multiple TABLE statements or multiple procedure steps. But if your data were in a slightly different structure, then TABULATE could do it with BY and/or PAGE processing and REPORT could do it with BY or PAGE processing -- no TABLE template needed. TABULATE and REPORT both have ways to directly provide a format (without a TABLE template) and they both have ways to provide a "header" on top of each table (TABULATE with PAGE dimension, REPORT with COMPUTE BEFORE). Even FREQ could take data in a different structure and produce multiple tables if you just used BY group processing (such as BY QUESTION).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, for changing fonts, both TABULATE and REPORT have the STYLE= overrides. If you can get what you want out of FREQ and you only have 3 questions, then that's probably an acceptable approach, but TABLE templates and STYLE templates will be an extra learning curve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But if you have something closer to 50-100 questions, then I'd recommend taking a look at some of this information and the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; These papers discuss the production of survey "books" or survey tables:&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/150-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/150-2009.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://analytics.ncsu.edu/sesug/2010/CC02.Go.pdf"&gt;http://analytics.ncsu.edu/sesug/2010/CC02.Go.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.nesug.org/proceedings/nesug05/ap/ap18.pdf"&gt;http://www.nesug.org/proceedings/nesug05/ap/ap18.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/172-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/172-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/091-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/091-30.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/194-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/194-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi23/Posters/p184.pdf"&gt;http://www2.sas.com/proceedings/sugi23/Posters/p184.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; And, the TABULATE doc even has an example of producing output for multi-response survey data:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1mcul17bwwvfhn19hoojfbxp2oy.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1mcul17bwwvfhn19hoojfbxp2oy.htm&lt;/A&gt;&lt;BR /&gt;and a Tech Support note on restructuring your data: &lt;A href="http://support.sas.com/techsup/technote/ts277.html"&gt;http://support.sas.com/techsup/technote/ts277.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 17:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-Crosstabs/m-p/7955#M261</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-21T17:52:53Z</dc:date>
    </item>
  </channel>
</rss>

