<?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 to indent rows in html in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521481#M141499</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This previous posting showed one technique for RTF and PDF:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-report-help/td-p/327126" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-report-help/td-p/327126&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The only difference is that for HTML, you need to use INDENT= instead of LEFTMARGIN=, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="html_indent.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25706i675291C100079B79/image-size/large?v=v2&amp;amp;px=999" role="button" title="html_indent.png" alt="html_indent.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 14:49:47 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-12-14T14:49:47Z</dc:date>
    <item>
      <title>How to indent rows in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521396#M141469</link>
      <description>&lt;P&gt;I'd like to indent some words when generate html files. For instance, there is column aecat as below shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;set a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if aedecod ='' then aecat=aesoc;&lt;BR /&gt;&amp;nbsp;else&amp;nbsp; aecat="(*ESC*){unicode 007C}"||strip(aedecod);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html file='xxxx/a.html';&lt;/P&gt;&lt;P&gt;proc report data=abc nowd;&lt;/P&gt;&lt;P&gt;column aecat;&lt;/P&gt;&lt;P&gt;define aecat/display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;However, the unicode doesn't work.&amp;nbsp; Could anybody help me? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 08:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521396#M141469</guid>
      <dc:creator>Guofeng</dc:creator>
      <dc:date>2018-12-14T08:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to indent rows in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521398#M141471</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abc;
set a;
if aedecod = ''
then aecat = aesoc;
else aecat = "  " || strip(aedecod);
run;

ods html file='xxxx/a.html';

proc report data=abc nowd;
column aecat;
define aecat/display style(column)={asis=on};
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Idea taken from &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/td-p/1935" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/td-p/1935&lt;/A&gt;, which is the first hit of a google search (Maxim 6) for "leading blanks in proc report".&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 08:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521398#M141471</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-14T08:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to indent rows in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521481#M141499</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This previous posting showed one technique for RTF and PDF:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-report-help/td-p/327126" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-report-help/td-p/327126&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The only difference is that for HTML, you need to use INDENT= instead of LEFTMARGIN=, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="html_indent.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25706i675291C100079B79/image-size/large?v=v2&amp;amp;px=999" role="button" title="html_indent.png" alt="html_indent.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 14:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521481#M141499</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-14T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to indent rows in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521849#M141619</link>
      <description>&lt;P&gt;Hi KurtBremser, thank you for your advice. Yes, it can indent by this way. However, the outcome appearance is not good: there are unnecessary frame for the indent words.(already highlighted as yellow)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521849#M141619</guid>
      <dc:creator>Guofeng</dc:creator>
      <dc:date>2018-12-17T06:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to indent rows in html</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521857#M141625</link>
      <description>Hi Cynthia, Thank you so much for your detail explain. It's so wonderful~ This is the best way to intent word if previous group like Region is just used for group (no need to summary by region).</description>
      <pubDate>Mon, 17 Dec 2018 08:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-indent-rows-in-html/m-p/521857#M141625</guid>
      <dc:creator>Guofeng</dc:creator>
      <dc:date>2018-12-17T08:52:55Z</dc:date>
    </item>
  </channel>
</rss>

