<?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: Proc report column header indentation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790515#M253113</link>
    <description>&lt;PRE&gt;data have;
do i=1 to 20;
col='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
output;
end;
stop;
 keep col;
run;


ods rtf file='c:\temp\temp.rtf' style=journal bodytitle;
proc report data =have nowd split = '#'  ;
column col ;
define col / 'System Organ Class#   Preferred Term' style(header)={just=l asis=on} ;
run;
ods rtf close&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1642424172229.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67461i1967943A02F48AF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1642424172229.png" alt="Ksharp_0-1642424172229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 12:56:23 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-01-17T12:56:23Z</dc:date>
    <item>
      <title>Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790150#M252945</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on AE table.&lt;/P&gt;&lt;P&gt;working on SAS studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to place 3 blank spaces before "Preferred Term" in column header (screen print below).&lt;/P&gt;&lt;P&gt;but, macro variable with blank space is not working with SAS studio, also with "\li300" option.... "System Organ Class" also move 3 space left.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestion please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhinayingole_0-1642172112425.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67400i65D6CCFEA7349A97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhinayingole_0-1642172112425.png" alt="abhinayingole_0-1642172112425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 14:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790150#M252945</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-01-14T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790163#M252949</link>
      <description>&lt;P&gt;Proc report code as a minimum as we need to know all the options you are currently using that might affect that appearance.&lt;/P&gt;
&lt;P&gt;Better is to include example data in the form of a data step as well so we can actually test code suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Any code&lt;/STRONG&gt; that includes macro variables needs to include the definition/values of the macro variables. And did you have code that worked as desired before adding in macro variables? If not, then the macro variables adds complexity to the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please not that "indent 3 spaces" is 1) very flexible in meaning as proportional fonts display spaces at different widths and 2) do you mean to have the second bit centered?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 15:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790163#M252949</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-14T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790170#M252953</link>
      <description>&lt;P&gt;I am not sure if there is any option in Proc report that aligns column headers as per your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, there is a workaround , which I find quite handy -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inserting Invisible characters in the program code, to adjust the header 3 spaces left - Press and hold “Alt” key and while holding it, type digit keys 255 at the numeric keypad . The inserted characters will be exactly like blank spaces (Repeat 3 times in your case) . The report output will honor them as valid characters and display them as spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug04/pm/pm24.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug04/pm/pm24.pdf&lt;/A&gt;&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;</description>
      <pubDate>Fri, 14 Jan 2022 16:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790170#M252953</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2022-01-14T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790185#M252955</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223452"&gt;@r_behata&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not sure if there is any option in Proc report that aligns column headers as per your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, there is a workaround , which I find quite handy -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inserting Invisible characters in the program code, to adjust the header 3 spaces left - Press and hold “Alt” key and while holding it, type digit keys 255 at the numeric keypad . The inserted characters will be exactly like blank spaces (Repeat 3 times in your case) . The report output will honor them as valid characters and display them as spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug04/pm/pm24.pdf" target="_blank" rel="noopener"&gt;https://www.lexjansen.com/nesug/nesug04/pm/pm24.pdf&lt;/A&gt;&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To force where the label goes to the second line would also likely require the SPLIT option character. Still say we need to see the existing Proc Report code to make sure this is viable. Note the phrase in the question:&lt;/P&gt;
&lt;PRE&gt;but, macro variable with blank space is not working with SAS studio, also with "\li300" option.... "System Organ Class" also move 3 space &lt;/PRE&gt;
&lt;P&gt;Macro variable(s) where of what content, the "\li300" appears to be attempting to use RTF (?) raw codes and not clue what "System Organ Class" refers to. There is a lot stuff possible in the code that we would need to see.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 16:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790185#M252955</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-14T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790195#M252960</link>
      <description>&lt;BR /&gt;proc report data = &amp;amp;data. headline nowd split = '#' missing ps=30&lt;BR /&gt;style ( report )= [frame=hsides rules=groups outputwidth=9in background = white ]&lt;BR /&gt;style ( header ) = [ protectspecialchars = off] nowindows ;&lt;BR /&gt;column fcol ;&lt;BR /&gt;&lt;BR /&gt;by pgby;&lt;BR /&gt;&lt;BR /&gt;define fcol / "System Organ Class# Preferred Term"&lt;BR /&gt;style = [ just = left cellwidth = 0.9in protectspecialchars = off background = white ]&lt;BR /&gt;style ( header ) = [ just = left ] ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This piece of code I am using.</description>
      <pubDate>Fri, 14 Jan 2022 17:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790195#M252960</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-01-14T17:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report column header indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790515#M253113</link>
      <description>&lt;PRE&gt;data have;
do i=1 to 20;
col='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
output;
end;
stop;
 keep col;
run;


ods rtf file='c:\temp\temp.rtf' style=journal bodytitle;
proc report data =have nowd split = '#'  ;
column col ;
define col / 'System Organ Class#   Preferred Term' style(header)={just=l asis=on} ;
run;
ods rtf close&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1642424172229.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67461i1967943A02F48AF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1642424172229.png" alt="Ksharp_0-1642424172229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 12:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-column-header-indentation/m-p/790515#M253113</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-17T12:56:23Z</dc:date>
    </item>
  </channel>
</rss>

