<?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 List Report Task (4.2) - Split character for column headings in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44784#M5156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the List Report task under SAS/Enterprise Guide 4.2, I cannot find a way of instructing the task to split the column headings so that they do not take up so much horizontal space in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of my column headings contain several words (e.g. &lt;EM&gt;﻿Sales Amount (inc. Sales Tax)) &lt;/EM&gt;and I would prefer to be able to control the width of the column by using a split character inside the label, or some other means to avoid having very wide columns resulting in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem is exacerbated when the variable populating the column sits &lt;EM&gt;under &lt;/EM&gt;a variable which is used as an &lt;EM&gt;across &lt;/EM&gt;variable as then the whole problemis repeated for each valid value of the &lt;EM&gt;across &lt;/EM&gt;variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to enlighten me as to how to do this within the List Report task? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware that I could extract the SAS code generated by the task and fiddle about from there in a Code module, but I am hoping to achive this solely within the List report task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DownUnder Dave&lt;/P&gt;&lt;P&gt;New Zealand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 04:52:33 GMT</pubDate>
    <dc:creator>DaveShea</dc:creator>
    <dc:date>2012-02-03T04:52:33Z</dc:date>
    <item>
      <title>List Report Task (4.2) - Split character for column headings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44784#M5156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the List Report task under SAS/Enterprise Guide 4.2, I cannot find a way of instructing the task to split the column headings so that they do not take up so much horizontal space in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of my column headings contain several words (e.g. &lt;EM&gt;﻿Sales Amount (inc. Sales Tax)) &lt;/EM&gt;and I would prefer to be able to control the width of the column by using a split character inside the label, or some other means to avoid having very wide columns resulting in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem is exacerbated when the variable populating the column sits &lt;EM&gt;under &lt;/EM&gt;a variable which is used as an &lt;EM&gt;across &lt;/EM&gt;variable as then the whole problemis repeated for each valid value of the &lt;EM&gt;across &lt;/EM&gt;variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to enlighten me as to how to do this within the List Report task? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware that I could extract the SAS code generated by the task and fiddle about from there in a Code module, but I am hoping to achive this solely within the List report task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DownUnder Dave&lt;/P&gt;&lt;P&gt;New Zealand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 04:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44784#M5156</guid>
      <dc:creator>DaveShea</dc:creator>
      <dc:date>2012-02-03T04:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: List Report Task (4.2) - Split character for column headings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44785#M5157</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; The default split character for a header is the slash / character. So you might try setting a label for your variable of:&amp;nbsp; &lt;/P&gt;&lt;P&gt;label sales=﻿'Sales Amount /(inc. Sales Tax)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue will then become that for procedures that do not have a split character, you will see the / in the label. So, either change the label inside the List Report task, or live with the / in other places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this label is distracting under an ACROSS variable, in code, you would turn the label to ' ' (quote space quote). I don't know if the List Report Wizard will allow you to do that. As you can see in example 1b, in the code below, using quote-space-quote in the SALES&amp;nbsp; header UNDER an ACROSS item (as in PRODUCT,SALES )produces undesirable results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you don't want to run code, but observe the difference if you do run the program below --&amp;nbsp; in the column headers based on the order of the items in the COLUMN statement. If you rearrange the items in the COLUMN statement so that sales, comes first, as in SALES,PRODUCT (list the analysis variable first) -- then you can use quote-space-quote to get rid of the entire blank row that REPORT would create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to insert the split character should be easy, since I assume that the List Report Task does not alter the default of / . If they have changed the split character, you would see it in the code as: &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd split='*';&amp;nbsp; (if they change it)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd split='/'; (if they just explicitly use the default)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The List Report Task is meant to generate simple reports easily -- reports that you can't generate with PROC PRINT, such as summary reports and simple ACROSS reports. But, to streamline the column headers or do more complex things in your report, I think you have to do in code.&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;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\header1.html' style=egdefault;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region contains 'Europe';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '1a) Default Label';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product,sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / sum 'Total/Sales';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region contains 'Europe';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '1b) Default Label with space';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product,sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / sum ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region contains 'Europe';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '2) Rearranged Variables and Label with space';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region sales,product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / across 'Total Sales/Based on Product';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / sum ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 16:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44785#M5157</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-03T16:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: List Report Task (4.2) - Split character for column headings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44786#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for a rapid and comprehensive answer. I appreciate what you say that the List Report Task is for &lt;SPAN style="text-decoration: underline;"&gt;simpler &lt;/SPAN&gt;designs of reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The slash character suggestion works just fine in the List Report Task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion of using a &amp;lt;quote&amp;gt;&amp;lt;space&amp;gt;&amp;lt;space&amp;gt; character string as the Label value in order to get rid of the repeated label under an across variable does not work for me. I tried both single and double quotes but had no joy when using the List Report Task. The result in the table was exactly the characters I had entered into the Custom Label control of the Column Headings dialog box. However, a bit of searching through the SAS Conference/Forum proceedings gave me this paper:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/064-2007.pdf"&gt;http://www2.sas.com/proceedings/forum2007/064-2007.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN lang="EN-GB"&gt;064-2007 "Using Invisible Characters in SAS® Programming. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN lang="EN-GB"&gt;Hidden Dragons, Episode II" by Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA)&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This paper suggested using the Alt-255 non-printing character in place of the value for the variable label and this worked very well for me in the List Report Task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have gained two things from this post. Thank you Cynthia and Shi-Tao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 22:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Report-Task-4-2-Split-character-for-column-headings/m-p/44786#M5158</guid>
      <dc:creator>DaveShea</dc:creator>
      <dc:date>2012-02-03T22:07:25Z</dc:date>
    </item>
  </channel>
</rss>

