<?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 SAS RWI Indent rows in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270364#M15883</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I indent a row in SAS RWI? the indent= ot textindent= options do not seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neha.&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 14:53:41 GMT</pubDate>
    <dc:creator>analyst_work</dc:creator>
    <dc:date>2016-05-13T14:53:41Z</dc:date>
    <item>
      <title>SAS RWI Indent rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270364#M15883</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I indent a row in SAS RWI? the indent= ot textindent= options do not seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neha.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270364#M15883</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2016-05-13T14:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RWI Indent rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270409#M15895</link>
      <description>&lt;P&gt;RWI is what?&lt;/P&gt;
&lt;P&gt;Provide more of an example of what you are doing. If you are using a procedure to generate output some of the options only work for the tradional Listing output not in ODS (Html, RTF, PDF etc).&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 17:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270409#M15895</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-13T17:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RWI Indent rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270410#M15896</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am using the Report Writing Interface (RWI) to produce a table in which I&lt;BR /&gt;need to indent a column. The code is something like this:&lt;BR /&gt;&lt;BR /&gt;obj.row_start();&lt;BR /&gt;obj.format_cell (text: "xyz");&lt;BR /&gt;obj.row_end;&lt;BR /&gt;&lt;BR /&gt;I want to indent the text xyz, how should I do it?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 13 May 2016 17:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270410#M15896</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2016-05-13T17:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RWI Indent rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270472#M15907</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Leftmargin and rightmargin worked for me as style attribute overrides instead of trying indent=. Here's my output showing both the left margin and the right margin "indented" on selected rows, using conditional logic in the program:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3167i3424F56722EB18CA/image-size/original?v=v2&amp;amp;px=-1" alt="leftmargin_works_to_indent.png" title="leftmargin_works_to_indent.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And this is the program that created it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber;
ods pdf file="c:\temp\leftmargin_rightmargin_rwi.pdf" notoc ;
   
title '1) Use LeftMargin and RightMargin attributes';
data _null_; 
  set SASHELP.IRIS(obs=10) end=last; 
  if _N_ = 1 then do; 
      dcl odsout obj(); 
      obj.table_start(); 
        obj.head_start(); 
	    ** Header row 1;
          obj.row_start(type: "Header"); 
            obj.format_cell(text: "Species", 
                            style_attr:"fontweight=bold just=l width=2in leftmargin=.25in"); 
            obj.format_cell(text: "SepalLength", 
                            style_attr:"just=r fontweight=bold width=2in"); 
          obj.row_end(); 
        obj.head_end(); 
    end;
     ** row for every obs;
	 ** make every other row look "indented" by changing cell margin;
      obj.row_start(); 
	  if _n_ in (1,3,5,7,9) then do;
            obj.format_cell(data: species, style_attr:"just=l leftmargin=0in"); 
            obj.format_cell(data: SepalLength, style_attr:"just=r rightmargin=0in"); 
	  end;
	  else do;
            obj.format_cell(data: species, style_attr:"just=l leftmargin=.5in");
            obj.format_cell(data: SepalLength, style_attr:"just=r rightmargin=.5in"); 
	  end;
      obj.row_end(); 
   
  if last then do; 
      obj.table_end(); 
  end; 
run; 
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; My memory ( which may be faulty) was that INDENT= was originally designed for RTF, but I always thought that leftmargin= worked better as an override.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-RWI-Indent-rows/m-p/270472#M15907</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-14T01:22:30Z</dc:date>
    </item>
  </channel>
</rss>

