<?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 alignment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682921#M206759</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope everyone is doing good.&lt;/P&gt;&lt;P&gt;Could you help me with one question regarding proc report?&lt;BR /&gt;Below is the part of my report which I need to update.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webart999ARM_0-1599740713704.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49237i5300FEF90ED22775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="webart999ARM_0-1599740713704.png" alt="webart999ARM_0-1599740713704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First two columns highlighted with the black need to be moved up (mentioned with arrow).&lt;BR /&gt;I could not find the appropriate option to solve that 'problem'.&lt;BR /&gt;Below is the proc report of the above-mentioned report.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final nowindows headline headskip split='^' style(header)=[cellspacing=0 ] style=[cellwidth=100%];
	   column I ord2 col1
	  ("~S={borderbottomcolor=black borderbottomwidth=1} &amp;amp;trt" col2 col3 ("~S={borderbottomcolor=black borderbottomwidth=1 cellheight =10% } &lt;STRONG&gt;TEXT&lt;/STRONG&gt;" col4 col5)col6) ;
	  define I/order order=internal noprint;
	  define ord2/order order=internal noprint;
	  define col1 / display " " 							                    style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=16%];
	  define col2 / display "&lt;STRONG&gt;TEXT&lt;/STRONG&gt;^300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))"   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col3 / display "&lt;STRONG&gt;TEXT&lt;/STRONG&gt;^300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))"   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col4 / display "300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))" 	            style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col5 / display "600 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))" 				style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col6 / display "All^300mg^Patients^(N=&amp;amp;TOT1.)" 					style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	

	  compute before i;
	  line "";
	  endcomp;
	  compute after ord2;
	  line "";
	  endcomp;

run;
ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in Advance&lt;BR /&gt;Artur&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:32:10 GMT</pubDate>
    <dc:creator>webart999ARM</dc:creator>
    <dc:date>2020-09-10T12:32:10Z</dc:date>
    <item>
      <title>Proc report: Header alignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682921#M206759</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope everyone is doing good.&lt;/P&gt;&lt;P&gt;Could you help me with one question regarding proc report?&lt;BR /&gt;Below is the part of my report which I need to update.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webart999ARM_0-1599740713704.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49237i5300FEF90ED22775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="webart999ARM_0-1599740713704.png" alt="webart999ARM_0-1599740713704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First two columns highlighted with the black need to be moved up (mentioned with arrow).&lt;BR /&gt;I could not find the appropriate option to solve that 'problem'.&lt;BR /&gt;Below is the proc report of the above-mentioned report.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final nowindows headline headskip split='^' style(header)=[cellspacing=0 ] style=[cellwidth=100%];
	   column I ord2 col1
	  ("~S={borderbottomcolor=black borderbottomwidth=1} &amp;amp;trt" col2 col3 ("~S={borderbottomcolor=black borderbottomwidth=1 cellheight =10% } &lt;STRONG&gt;TEXT&lt;/STRONG&gt;" col4 col5)col6) ;
	  define I/order order=internal noprint;
	  define ord2/order order=internal noprint;
	  define col1 / display " " 							                    style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=16%];
	  define col2 / display "&lt;STRONG&gt;TEXT&lt;/STRONG&gt;^300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))"   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col3 / display "&lt;STRONG&gt;TEXT&lt;/STRONG&gt;^300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))"   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col4 / display "300 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))" 	            style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col5 / display "600 mg^(N=%sysfunc(trim(&amp;amp;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;.)))" 				style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col6 / display "All^300mg^Patients^(N=&amp;amp;TOT1.)" 					style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	

	  compute before i;
	  line "";
	  endcomp;
	  compute after ord2;
	  line "";
	  endcomp;

run;
ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in Advance&lt;BR /&gt;Artur&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682921#M206759</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2020-09-10T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report: Header alignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682929#M206762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since you are using a spanning header for col5 and 6, one way could be to display the label of col2, col3 and col6 in a spanning header and no more in the define statement. Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final nowindows headline headskip split='^' style(header)=[cellspacing=0 ] style=[cellwidth=100%];
	   column I ord2 col1
	  ("~S={borderbottomcolor=black borderbottomwidth=1} &amp;amp;trt" 
         ("TEXT^300 mg^(N=%sysfunc(trim(&amp;amp;TEXT.)))" col2) 
         ("TEXT^300 mg^(N=%sysfunc(trim(&amp;amp;TEXT.)))" col3) 
         ("~S={borderbottomcolor=black borderbottomwidth=1 cellheight =10% } TEXT" col4 col5)
         ("All^300mg^Patients^(N=&amp;amp;TOT1.)" col6
      ) ;
	  define I/order order=internal noprint;
	  define ord2/order order=internal noprint;
	  define col1 / display " " 							                    style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=16%];
	  define col2 / display ""   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col3 / display ""   	        style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col4 / display "300 mg^(N=%sysfunc(trim(&amp;amp;TEXT.)))" 	            style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col5 / display "600 mg^(N=%sysfunc(trim(&amp;amp;TEXT.)))" 				style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	  define col6 / display "" 					style(column)=[just=l asis=on] style(header)=[Just=c cellwidth=6%];
	

	  compute before i;
	  line "";
	  endcomp;
	  compute after ord2;
	  line "";
	  endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682929#M206762</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2020-09-10T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report: Header alignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682936#M206765</link>
      <description>That approach worked. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Header-alignment/m-p/682936#M206765</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2020-09-10T13:37:44Z</dc:date>
    </item>
  </channel>
</rss>

