<?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: header is too long when define crosstabs in proc template in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/header-is-too-long-when-define-crosstabs-in-proc-template/m-p/657673#M24194</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*define an escape char;
ods&amp;nbsp;escapechar='^';

* insert ^n for line breaks;
title " long  line ^n next line ^n another line";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Jun 2020 20:56:30 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2020-06-11T20:56:30Z</dc:date>
    <item>
      <title>header is too long when define crosstabs in proc template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/header-is-too-long-when-define-crosstabs-in-proc-template/m-p/612194#M23627</link>
      <description>&lt;P&gt;Hi, when I define the header in proc template, the header is too long so that the table was expanded to a wide one which split into two tables in RTF output. How can I wrap the header and let it not become two tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;My header is very very very very very very very very very very very very very very very very&amp;nbsp;very&amp;nbsp;very&amp;nbsp;long&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;921&lt;BR /&gt;100.0%&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;BR /&gt;0.0%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;BR /&gt;0.0%&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1083&lt;BR /&gt;100.0%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;921&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1083&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;My header is very very very very very very very very very very very very very very very very&amp;nbsp;very&amp;nbsp;very&amp;nbsp;long&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;921&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Place2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1083&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2004&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;picture pctfmt (round) other ='009.9%';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define crosstabs Base.Freq.CrossTabFreqs;&lt;BR /&gt;cellvalue frequency colpercent;&lt;BR /&gt;header Myheader;&lt;BR /&gt;style= {cellwidth = 6in};&lt;BR /&gt;define header Myheader;&lt;BR /&gt;text 'My header is very very very very very very very very very very very very very very very very very very long';&lt;BR /&gt;style= header;&lt;BR /&gt;end;&lt;BR /&gt;define frequency;&lt;BR /&gt;format =8.;&lt;BR /&gt;end;&lt;BR /&gt;define colpercent;&lt;BR /&gt;format=pctfmt.;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close; ods rtf file="example.rtf";&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;&lt;BR /&gt;proc freq data = example;&lt;BR /&gt;tables _all_*site/missing nocum norow nopercent;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close; ods listing;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/header-is-too-long-when-define-crosstabs-in-proc-template/m-p/612194#M23627</guid>
      <dc:creator>xuqingsally</dc:creator>
      <dc:date>2019-12-16T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: header is too long when define crosstabs in proc template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/header-is-too-long-when-define-crosstabs-in-proc-template/m-p/657673#M24194</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*define an escape char;
ods&amp;nbsp;escapechar='^';

* insert ^n for line breaks;
title " long  line ^n next line ^n another line";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 20:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/header-is-too-long-when-define-crosstabs-in-proc-template/m-p/657673#M24194</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-06-11T20:56:30Z</dc:date>
    </item>
  </channel>
</rss>

