<?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: Alignment of column headers in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/277625#M58772</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an option that I can use to allign the column header to left in the .txt file that is generated using proc report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=abc&amp;nbsp; options;&lt;/P&gt;
&lt;P&gt;column var1 ("left text"&amp;nbsp; var2 var3 var4 var5) var6;&lt;/P&gt;
&lt;P&gt;[/pre]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the output to look like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;U&gt;left text________________&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;var1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var4&amp;nbsp;&amp;nbsp;&amp;nbsp; var5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:59:41 GMT</pubDate>
    <dc:creator>thummala</dc:creator>
    <dc:date>2016-06-15T17:59:41Z</dc:date>
    <item>
      <title>Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23848#M5349</link>
      <description>This is regarding the alignment of column headers in the proc report.&lt;BR /&gt;
&lt;BR /&gt;
Is there any option to center align column header and left align the column value?&lt;BR /&gt;
&lt;BR /&gt;
The define statement, when given with "left" option also left aligns its column header to left.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 27 Apr 2009 10:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23848#M5349</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2009-04-27T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23849#M5350</link>
      <description>Maybe the paper "Beyond the Basics: Advanced PROC REPORT Tips and Tricks" has the answer to your question. It can be found at &lt;A href="http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf" target="_blank"&gt;http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf&lt;/A&gt;</description>
      <pubDate>Tue, 28 Apr 2009 07:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23849#M5350</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2009-04-28T07:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23850#M5351</link>
      <description>Thanks andreas_Ids.&lt;BR /&gt;
&lt;BR /&gt;
But this paper doesn't contain any info/options about aligning the column header to left/center/right. &lt;BR /&gt;
&lt;BR /&gt;
For Ex.&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sample_data nowd;&lt;BR /&gt;
column ('Employee ID' id) ('Employee Name' name);&lt;BR /&gt;
define id / display right;&lt;BR /&gt;
display name / display left;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
This code will make, not only the column values to right &amp;amp; left, but also the headers..... But, i want the header to be unaffected.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 28 Apr 2009 09:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23850#M5351</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2009-04-28T09:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23851#M5352</link>
      <description>Hi:&lt;BR /&gt;
  For ODS destinations that support style (NOT the LISTING destination), you can specify separate alignment:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define name / display &lt;BR /&gt;
        style(header)={just=c}&lt;BR /&gt;
        style(column)={just=l};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
          &lt;BR /&gt;
You'd have to try this in your ODS destinations of interest. For ODS RTF, PDF and HTML, the STYLE= overrides should work. For destinations like ODS CSV and others, the alignment overrides might not work. The STYLE= overrides are will NOT work for LISTING output (what you see in the Results Window).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 28 Apr 2009 16:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/23851#M5352</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-04-28T16:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/277625#M58772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an option that I can use to allign the column header to left in the .txt file that is generated using proc report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=abc&amp;nbsp; options;&lt;/P&gt;
&lt;P&gt;column var1 ("left text"&amp;nbsp; var2 var3 var4 var5) var6;&lt;/P&gt;
&lt;P&gt;[/pre]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the output to look like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;U&gt;left text________________&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;var1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var4&amp;nbsp;&amp;nbsp;&amp;nbsp; var5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/277625#M58772</guid>
      <dc:creator>thummala</dc:creator>
      <dc:date>2016-06-15T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/448932#M69628</link>
      <description>&lt;P&gt;&lt;SPAN&gt;column var1 ("(*ESC*)S={just = left}left text(*ESC*)S={}"&amp;nbsp; var2 var3 var4 var5) var6;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 11:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/448932#M69628</guid>
      <dc:creator>Artem</dc:creator>
      <dc:date>2018-03-27T11:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment of column headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/917117#M83328</link>
      <description>&lt;P&gt;These things are known most of the times, but ready reference here is really helpful! Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Alignment-of-column-headers/m-p/917117#M83328</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2024-02-21T10:04:41Z</dc:date>
    </item>
  </channel>
</rss>

