<?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 Proc report header title in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12795#M3163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a proc report where I want to replace the column name by &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;define Jsc / 'Jsc (mA/cm2)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;but it splits after JSC? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 12:31:58 GMT</pubDate>
    <dc:creator>Filipvdr</dc:creator>
    <dc:date>2011-09-20T12:31:58Z</dc:date>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12795#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a proc report where I want to replace the column name by &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;define Jsc / 'Jsc (mA/cm2)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;but it splits after JSC? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12795#M3163</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-09-20T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12796#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding a WIDTH option to make the column wide enough for your longer title.&lt;/P&gt;&lt;P&gt;You might also check what character you are using for you split character, but normally you would not use a space for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12796#M3164</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-09-20T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12797#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember that the WIDTH option only works for listing output. For non-listing output like PDF or RTF, you'll need to use a STYLE option on the DEFINE statement and specify the WIDTH style attribute. See &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002972093.htm"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002972093.htm&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12797#M3165</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2011-09-20T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12798#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I tried width but as I use HTML to output it does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; jsc / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'Jsc (mA/cm²)'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;STYLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=[CELLWIDTH=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;270&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;];&lt;/SPAN&gt; (which is far too big)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;but still my name gets splitted in the title..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 08:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12798#M3166</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-09-22T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12799#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; solution: take a split charachter which is not / (default)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;report&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;SPLIT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'+'&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 08:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12799#M3167</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-09-22T08:24:26Z</dc:date>
    </item>
    <item>
      <title>Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12800#M3168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey Filipvdr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not specify a width= statement in your define statement, the column headline will break after the longest value in the column.&lt;/P&gt;&lt;P&gt;E.g. the variable sex in sashelp.class dataset has a maximum length of 1, so the column length is one. If you add a label you need to define the column width like the width of the label. (Even the unlabeled variable name sex needs a width option to be displayed correctly.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following comparision:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc report data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; column name sex age weight height;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define sex / 'Gender';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sex in the basic dataset is either 'M' or 'F' with the maximum width of 1. So the column header has a width of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc report data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; column name sex age weight height;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define sex / display 'Gender' width=6;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The assigned label 'Gender' has a width of 6 characters and with the corresponding width option you can expand the header.&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Niels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12800#M3168</guid>
      <dc:creator>SAS_Niels</dc:creator>
      <dc:date>2011-10-21T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report header title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12801#M3169</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; As Tim pointed out, WIDTH= option of PROC REPORT only has an impact on LISTING output. Since the OP said he wanted HTML output, the WIDTH= option would not work. Instead, a combination of changing the default split character (a /) and using CELLWIDTH should get him what he wants. In the attached screen shots, examp_width1.jpg shows code that used LISTING and HTML. Without WIDTH=, the label 'Gender' does behave as you describe, but only for the LISTING output. As you can see, in the HTML output, the label appears correctly. However, because the split character is defined as / (the default), the label string for NAME splits at the slash in the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With the SPLIT= redefined, and an explicit CELLWIDTH, the header for NAME is as desired and the header for SEX is fine without a WIDTH= option. The units for CELLWIDTH can be specified as pixels, points, inches or centimeters. I usually don't mess with pixels and I just go with inches as the unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In addition to WIDTH=, there are other PROC REPORT options that only work in the LISTING destination, these are: FLOW, PANELS, BOX, DOL, DUL, OL, UL, SKIP, HEADLINE, HEADSKIP, WIDTH, SPACE, LS, PS. See this Tech Support note for more information: &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/2/549.html"&gt;http://support.sas.com/kb/2/549.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/23/671.html"&gt;http://support.sas.com/kb/23/671.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/report1.html"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/report1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11842i04E9E818019E821C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="examp_width1.jpg" title="examp_width1.jpg" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11843iF9BB544E83F39B54/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="examp_width2.jpg" title="examp_width2.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 16:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-header-title/m-p/12801#M3169</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-10-21T16:05:36Z</dc:date>
    </item>
  </channel>
</rss>

