<?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 Indentation in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indentation-in-proc-report/m-p/964044#M26861</link>
    <description>&lt;P&gt;Can you indent items where a line feed is also being used in ODS RTF?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example: Item1||"~n~S={leftmargin = 0.2in}"||item2||"~n~S={leftmargin = 0.2in}"||item3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The end result would be this:&lt;/P&gt;
&lt;P&gt;Item1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Item2 blah blah&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item2 wraps here&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Item 3 blah blah&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item 3 wraps here, etc.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 16:21:49 GMT</pubDate>
    <dc:creator>_Hopper</dc:creator>
    <dc:date>2025-04-10T16:21:49Z</dc:date>
    <item>
      <title>Indentation in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indentation-in-proc-report/m-p/964044#M26861</link>
      <description>&lt;P&gt;Can you indent items where a line feed is also being used in ODS RTF?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example: Item1||"~n~S={leftmargin = 0.2in}"||item2||"~n~S={leftmargin = 0.2in}"||item3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The end result would be this:&lt;/P&gt;
&lt;P&gt;Item1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Item2 blah blah&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item2 wraps here&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Item 3 blah blah&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item 3 wraps here, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indentation-in-proc-report/m-p/964044#M26861</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2025-04-10T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Indentation in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indentation-in-proc-report/m-p/964045#M26862</link>
      <description>&lt;P&gt;In my tests, the INDENT= style attribute only applies to the first value. You can try a hanging indent, but the subsequent lines will have the same indention. Another alternative is to add spaces and then use the ASIS=ON style attribute. I have included an example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
item1='Item 1';
item2='Item 2';
item3='Item 3';
text= '~S={indent=.25in}'||Item1||"~n"||"~S={indent=.5in}"||item2||"~n~S={indent=.75in}"||item3;
text1=Item1||"~n"||item2||"~n"||item3;
text2=Item1||"~n    "||item2||"~n          "||item3;
run;

ods listing close;
ods escapechar='~';
ods rtf file='test.rtf';

proc report data=test;
column text text1 text2;
define text / display style(column)=[cellwidth=2in];
define text1 / display style(column)={cellwidth=2in 
                               protectspecialchars=off 
                               pretext='\pnhang\fi-220\li220 '};
define text2 / display style(column)=[cellwidth=2in asis=on];
run;

ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indentation-in-proc-report/m-p/964045#M26862</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-04-10T16:49:38Z</dc:date>
    </item>
  </channel>
</rss>

