<?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: Indenting Row Headings using Proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272927#M54331</link>
    <description>Hi:&lt;BR /&gt;  There have been several previous postings about this. I believe the most recent one showed the use of LEFTMARGIN to accomplish indenting but NOT for the LISTING output. Searching the forum should help you find the posting.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Wed, 25 May 2016 02:39:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-05-25T02:39:11Z</dc:date>
    <item>
      <title>Indenting Row Headings using Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272848#M54305</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible, using PROC REPORT (SAS v9.4), to mimic the capabilities of PROC TABULATE with regard to indenting nested rows underneath parent rows instead of placing them next to each other?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I have data that produces output similar to below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;---------------------------&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |Gender |&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-------|&lt;BR /&gt;|EDLVL&amp;nbsp; OFFICE&amp;nbsp;&amp;nbsp;&amp;nbsp; | F | M |&lt;BR /&gt;|-----------------+---+---|&lt;BR /&gt;|Bac&amp;nbsp;&amp;nbsp;&amp;nbsp; Accounting|&amp;nbsp; 4|&amp;nbsp; 2|&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 2|&amp;nbsp; 3|&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 4|&amp;nbsp; 4|&lt;BR /&gt;|Mas&amp;nbsp;&amp;nbsp;&amp;nbsp; Accounting|&amp;nbsp; 2|&amp;nbsp; 2|&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 1|&amp;nbsp; 0|&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 3|&amp;nbsp; 4|&lt;BR /&gt;|PhD&amp;nbsp;&amp;nbsp;&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 0|&amp;nbsp; 1|&lt;BR /&gt;---------------------------&lt;/PRE&gt;
&lt;P&gt;in PROC TABULATE, I can use NOSEPS and INDENT= options to make the above output look like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;----------------------&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |Gender |&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-------|&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | F | M |&lt;BR /&gt;|------------+---+---|&lt;BR /&gt;|Bac&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|&amp;nbsp; Accounting|&amp;nbsp; 4|&amp;nbsp; 2|&lt;BR /&gt;|&amp;nbsp; Admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 2|&amp;nbsp; 3|&lt;BR /&gt;|&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 4|&amp;nbsp; 4|&lt;BR /&gt;|Mas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|&amp;nbsp; Accounting|&amp;nbsp; 2|&amp;nbsp; 2|&lt;BR /&gt;|&amp;nbsp; Admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 1|&amp;nbsp; 0|&lt;BR /&gt;|&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 3|&amp;nbsp; 4|&lt;BR /&gt;|PhD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|&amp;nbsp; Systems&amp;nbsp;&amp;nbsp; |&amp;nbsp; 0|&amp;nbsp; 1|&lt;BR /&gt;----------------------&lt;/PRE&gt;
&lt;P&gt;Although I am not very savvy in PROC REPORT, I want to use that tool because there is so much more to my product than what's seen here.&amp;nbsp; Does PROC REPORT have the capability to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rod&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 19:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272848#M54305</guid>
      <dc:creator>RodTennant</dc:creator>
      <dc:date>2016-05-24T19:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting Row Headings using Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272878#M54315</link>
      <description>&lt;P&gt;Yes this is possible in PROC REPORT. You do this by creating a COMPUTED column which is defined by a series of REPORT programming statements. It requires some advanced techniques so its a lot easier to follow from an example. I've seen something like this in SAS Support so I'll try to find an example for you.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 20:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272878#M54315</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-05-24T20:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting Row Headings using Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272921#M54330</link>
      <description>&lt;P&gt;What is your ODS Destination ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
 set sashelp.class;
 select(age);
 when(11,12) group='xxxxx';
 when(14,15,16) group='yyyyy';
 otherwise group='zzzzz';
 end;
run;

proc report data=class nowd;
column group name age,sex;
define group/group noprint;
define name/display style={pretext='     ' asis=on};
define sex/across;
define age/analysis ' ';
compute before group/style(lines)={just=left fontweight=bold};
 line group $40.;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2016 01:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272921#M54330</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-25T01:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting Row Headings using Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272927#M54331</link>
      <description>Hi:&lt;BR /&gt;  There have been several previous postings about this. I believe the most recent one showed the use of LEFTMARGIN to accomplish indenting but NOT for the LISTING output. Searching the forum should help you find the posting.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 25 May 2016 02:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/272927#M54331</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-25T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting Row Headings using Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/273098#M54401</link>
      <description>&lt;DIV id="messagebodydisplay_0_1" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;This worked very well. Thank you for helping...I very much appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My ODS destination is Powerpoint.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2016 18:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indenting-Row-Headings-using-Proc-Report/m-p/273098#M54401</guid>
      <dc:creator>RodTennant</dc:creator>
      <dc:date>2016-05-25T18:25:30Z</dc:date>
    </item>
  </channel>
</rss>

