<?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: ODS EscapeChar style not work in html in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/864034#M341240</link>
    <description>&lt;P&gt;Try Traffic Light Format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length column1-column3 $200.;
column1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; column2="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb "; column3="cccccccccccccccccccccccccccccccccccccccccccccccccc "; output;
run;

proc format;
value $ fmt
'bbbb'='l'
'cccc'='r'
other='c'
;
run;

ods escapechar='~';
proc report data=test nowindows style(header)={just=$fmt. };
column ('aaaaa' column1 ('bbbb' column2) ('cccc' column3));
define column1 / display;
define column2 / display;
define column3 / display;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1678798029689.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81522iEB71ECC1F7C954E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1678798029689.png" alt="Ksharp_1-1678798029689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 12:47:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-03-14T12:47:26Z</dc:date>
    <item>
      <title>ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863952#M341216</link>
      <description>&lt;P&gt;I want to left justify one of my column header when running proc report. I refer to the question here:&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/How-Can-I-Make-Header-Justified-Left-Partially-by-Using-PROC/m-p/563424#M22814" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/How-Can-I-Make-Header-Justified-Left-Partially-by-Using-PROC/m-p/563424#M22814&lt;/A&gt;. It is quite familiar to my question. One difference is I want to output a html. The solution works for rtf and pdf. Not works for html.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my example code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data test;
length column1-column3 $200.;
column1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; column2="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb "; column3="cccccccccccccccccccccccccccccccccccccccccccccccccc "; output;
run;

ods html file="****";
ods escapechar='~';
proc report data=test nowindows style(header)={&lt;FONT color="#FF0000"&gt;just=c&lt;/FONT&gt;};
column ('aaaaa' column1 ('~S={&lt;FONT color="#FF0000"&gt;just=l&lt;/FONT&gt;} bbbb' column2) ('~S={&lt;FONT color="#FF0000"&gt;just=r&lt;/FONT&gt;} cccc' column3));
define column1 / display;
define column2 / display;
define column3 / display;
run;
ods HTML close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 07:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863952#M341216</guid>
      <dc:creator>Blaine7</dc:creator>
      <dc:date>2023-03-14T07:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863960#M341218</link>
      <description>&lt;P&gt;This may works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='~';
proc report data=test nowindows style(header)={just=c};
column ('aaaaa' column1 ('~S={just=l width=300%}bbbb' column2) ('~S={just=r width=300%}cccc' column3));
define column1 / display;
define column2 / display;
define column3 / display;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Have no idea about the reason and feel pity about that. I may back to complete this.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863960#M341218</guid>
      <dc:creator>Hao_Luo</dc:creator>
      <dc:date>2023-03-14T08:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863964#M341219</link>
      <description>Hi Luo, thanks for your response. I didn't see any difference with the code you provided. Did that work on your SAS console?</description>
      <pubDate>Tue, 14 Mar 2023 08:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863964#M341219</guid>
      <dc:creator>Blaine7</dc:creator>
      <dc:date>2023-03-14T08:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863966#M341220</link>
      <description>&lt;P&gt;Yes, I am using SAS 9.4 TS1M8.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81503i8809AA64F47826C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863966#M341220</guid>
      <dc:creator>Hao_Luo</dc:creator>
      <dc:date>2023-03-14T08:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863968#M341221</link>
      <description>Just a quick try in SAS EG, this trick failed &amp;gt;_&amp;lt;</description>
      <pubDate>Tue, 14 Mar 2023 08:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863968#M341221</guid>
      <dc:creator>Hao_Luo</dc:creator>
      <dc:date>2023-03-14T08:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863969#M341222</link>
      <description>Yes. I am using SAS studio and it failed either.</description>
      <pubDate>Tue, 14 Mar 2023 08:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/863969#M341222</guid>
      <dc:creator>Blaine7</dc:creator>
      <dc:date>2023-03-14T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/864034#M341240</link>
      <description>&lt;P&gt;Try Traffic Light Format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length column1-column3 $200.;
column1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; column2="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb "; column3="cccccccccccccccccccccccccccccccccccccccccccccccccc "; output;
run;

proc format;
value $ fmt
'bbbb'='l'
'cccc'='r'
other='c'
;
run;

ods escapechar='~';
proc report data=test nowindows style(header)={just=$fmt. };
column ('aaaaa' column1 ('bbbb' column2) ('cccc' column3));
define column1 / display;
define column2 / display;
define column3 / display;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1678798029689.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81522iEB71ECC1F7C954E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1678798029689.png" alt="Ksharp_1-1678798029689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/864034#M341240</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-03-14T12:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EscapeChar style not work in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/864057#M341250</link>
      <description>It works. Thanks a lot.</description>
      <pubDate>Tue, 14 Mar 2023 13:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EscapeChar-style-not-work-in-html/m-p/864057#M341250</guid>
      <dc:creator>Blaine7</dc:creator>
      <dc:date>2023-03-14T13:48:19Z</dc:date>
    </item>
  </channel>
</rss>

