<?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: How Can I delete Un-needed Blank in Front of Header when Using PROC REPORT? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/564803#M158461</link>
    <description>&lt;P&gt;If you choose ASIS=OFF things appear to work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p0xi2cygmfk0wkn1ei625zq5r488.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p0xi2cygmfk0wkn1ei625zq5r488.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't really explain why there are blanks in the first place and it looks to me like using (*ESC*) is adding a blank - but it makes things work at least.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably should also add brackets around your style definition for column1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below code works for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman" asis=off}
    style(report)={rules=groups frame=void borderwidth=0.5pt bordercolor=black}
    ;
    column (
          ("(*ESC*){style[fontfamily='Times New Roman' just=left]AAAAA}" column1)
          ("(*ESC*){style[borderbottomcolor=black borderbottomstyle=solid borderbottomwidth=0.5pt ]BBBBB}" column2) 
          ("CCCCC" column3)
          );
    define column1 / display;
    define column2 / display;
    define column3 / display;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 04:13:32 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-06-10T04:13:32Z</dc:date>
    <item>
      <title>How Can I delete Un-needed Blank in Front of Header when Using PROC REPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/564797#M158459</link>
      <description>&lt;P&gt;Hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create customed headers by using PROC REPORT.&lt;/P&gt;&lt;P&gt;I would like to delete un-needed blanks in front of headers&lt;/P&gt;&lt;P&gt;(for example, one blank that is in front of "BBBBB", which I do not expect).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They, Unexpected Blanks, emerge if using inline formatting to draw borderlines, I think.&lt;/P&gt;&lt;P&gt;They disappeared when not using inline formatting.&lt;/P&gt;&lt;P&gt;I have no idea. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length column1-column3 $200.;
    column1="aaaaa"; column2="bbbbb"; column3="ccccc"; output;
run;
ods rtf file="PleaseSpecifyYourOwnFolder\test.rtf";
proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman" asis=on}
    style(report)={rules=groups frame=void borderwidth=0.5pt bordercolor=black}
    ;
    column ("(*ESC*){style[fontfamily='Times New Roman' just=left]AAAAA}" column1 
        ("(*ESC*){style[borderbottomcolor=black borderbottomstyle=solid borderbottomwidth=0.5pt]BBBBB}" column2) 
        ("CCCCC" column3));
    define column1 / display;
    define column2 / display;
    define column3 / display;
run;
quit;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex.PNG" style="width: 296px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30146i46B277431D69641C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ex.PNG" alt="ex.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 00:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/564797#M158459</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-10T00:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I delete Un-needed Blank in Front of Header when Using PROC REPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/564803#M158461</link>
      <description>&lt;P&gt;If you choose ASIS=OFF things appear to work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p0xi2cygmfk0wkn1ei625zq5r488.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p0xi2cygmfk0wkn1ei625zq5r488.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't really explain why there are blanks in the first place and it looks to me like using (*ESC*) is adding a blank - but it makes things work at least.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably should also add brackets around your style definition for column1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below code works for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman" asis=off}
    style(report)={rules=groups frame=void borderwidth=0.5pt bordercolor=black}
    ;
    column (
          ("(*ESC*){style[fontfamily='Times New Roman' just=left]AAAAA}" column1)
          ("(*ESC*){style[borderbottomcolor=black borderbottomstyle=solid borderbottomwidth=0.5pt ]BBBBB}" column2) 
          ("CCCCC" column3)
          );
    define column1 / display;
    define column2 / display;
    define column3 / display;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 04:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/564803#M158461</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-06-10T04:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I delete Un-needed Blank in Front of Header when Using PROC REPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/565192#M158650</link>
      <description>&lt;P&gt;Hi, Patrick-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my late response.&lt;/P&gt;&lt;P&gt;Yes, I think so, there may be problem of (*ESC*).&lt;/P&gt;&lt;P&gt;I replaced (*ESC*) with escapechar="^", and resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/565192#M158650</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-11T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I delete Un-needed Blank in Front of Header when Using PROC REPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/565744#M158888</link>
      <description>&lt;P&gt;Hi, Patrick-san, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may be difference of in-line formatting between style[xxxxx] and S={xxxxx}.&lt;/P&gt;&lt;P&gt;Using style[xxxxx], results have un-needed blanks, and using S={xxxxx}, have no un-needed blanks.&lt;/P&gt;&lt;P&gt;For your information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 04:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-delete-Un-needed-Blank-in-Front-of-Header-when-Using/m-p/565744#M158888</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-13T04:52:04Z</dc:date>
    </item>
  </channel>
</rss>

