<?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 print - Center justify column heading in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106814#M22257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have done a bit of search on how to left/center/right justify column headings in proc print but haven't found much... I have found 'Style' and 'Justify' but neither seem to work in my code.&lt;/P&gt;&lt;P&gt;Please let me know if you know how this can be done.&lt;/P&gt;&lt;P&gt;Many thanks &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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2013 17:32:30 GMT</pubDate>
    <dc:creator>Shirin</dc:creator>
    <dc:date>2013-08-09T17:32:30Z</dc:date>
    <item>
      <title>Proc print - Center justify column heading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106814#M22257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have done a bit of search on how to left/center/right justify column headings in proc print but haven't found much... I have found 'Style' and 'Justify' but neither seem to work in my code.&lt;/P&gt;&lt;P&gt;Please let me know if you know how this can be done.&lt;/P&gt;&lt;P&gt;Many thanks &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 17:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106814#M22257</guid>
      <dc:creator>Shirin</dc:creator>
      <dc:date>2013-08-09T17:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print - Center justify column heading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106815#M22258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 17:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106815#M22258</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-08-09T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print - Center justify column heading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106816#M22259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a simple proc print outputing to HTML.... it looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html file="**********";&lt;/P&gt;&lt;P&gt;proc print data= **********%scan(&amp;amp;FEDs.,&amp;amp;i.)_c9 (drop=NEW_ED_Code OLD_ED_Code) split="*" noobs;&lt;/P&gt;&lt;P&gt;Title1 "&amp;amp;&amp;amp;FEDPr&amp;amp;i.";&lt;/P&gt;&lt;P&gt;Footnote1 "**********";&lt;/P&gt;&lt;P&gt;label&amp;nbsp; **********;&lt;/P&gt;&lt;P&gt;format **********.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 17:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106816#M22259</guid>
      <dc:creator>Shirin</dc:creator>
      <dc:date>2013-08-09T17:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print - Center justify column heading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106817#M22260</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 do not see any code where you have actually TRIED style= with justification overrides. Can you try a report using SASHELP.CLASS and see whether your STYLE override works? For example, the code below justifies correctly (and changes colors correctly) for me. I made the report wide so you could REALLY see the impact of the justification.&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;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file='c:\temp\print_just.html' style=sasweb;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc print data=sashelp.class(obs=3)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; style(header)={just=c foreground=black}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; style(table)={width=100%};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; title 'Make the report very wide to see justification';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var name / style(data)={just=r}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&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; style(header)={background=pink};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var age / style(data)={just=l};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var sex height / style(data)={just=c}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&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;&amp;nbsp; style(header)={background=yellow};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var weight / style(data)={just=l};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11431i9EF1E1AF20D3F062/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="HTML_just.png" title="HTML_just.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 18:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106817#M22260</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-09T18:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print - Center justify column heading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106818#M22261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, my code works now!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 18:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-print-Center-justify-column-heading/m-p/106818#M22261</guid>
      <dc:creator>Shirin</dc:creator>
      <dc:date>2013-08-09T18:28:35Z</dc:date>
    </item>
  </channel>
</rss>

