<?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 Indenting rows selectively in PROC REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476158#M21268</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC REPORT to generate a meeting agenda.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The major agenda topics are noted with whole numbers, 1.0, 2.0, 3.0, ect....&lt;/P&gt;&lt;P&gt;while the descriptive information is noted with decimals, 3.1, 4.1.&lt;/P&gt;&lt;P&gt;Not every major topic has descriptive information.&lt;/P&gt;&lt;P&gt;I'd like to INDENT the descriptive information only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do that?&lt;/P&gt;&lt;P&gt;Here is some sample data and code.&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Agenda_2;&lt;BR /&gt;input No Text1 $50. ;&lt;BR /&gt;datalines ;&lt;BR /&gt;1 Members and Attendance&lt;BR /&gt;2 Review Minutes of Previous Meeting&lt;BR /&gt;3 Interesting First Topic&lt;BR /&gt;3.1 All there is to be said about this extremely Interesting First Topic, indeed&lt;BR /&gt;4 Interesting Second Topic&lt;BR /&gt;4.1 A copious font of knowledge concerning this extremely Interesting second Topic, indeed&lt;BR /&gt;5 Interesting third Topic&lt;BR /&gt;6 Interesting fourth Topic&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;options papersize=letter orientation=portrait ps=80 ls=100 nocenter&lt;BR /&gt;LEFTMARGIN=0.75in RIGHTMARGIN=0.75in TOPMARGIN=1.0in BOTTOMMARGIN=0.75in&lt;BR /&gt;nodate nonumber;&lt;BR /&gt;ods rtf file="&amp;amp;tabout.\AG_PandT &amp;amp;datetime..rtf" ;&lt;/P&gt;&lt;P&gt;proc report data= Agenda_2 NOWD&lt;BR /&gt;style(report) = [bordercolor=white]&lt;BR /&gt;style(column) = [bordercolor=white]&lt;BR /&gt;style(header) = [bordercolor=white background = white]&lt;BR /&gt;style(summary) = [bordercolor=white] ;&lt;BR /&gt;column no text1 ;&lt;BR /&gt;define no / ' ' style(column)={cellwidth= 0.5 in} format=4.1 ;&lt;BR /&gt;define Text1 / ' ' style (column)={cellwidth=6.0 in} ;&lt;BR /&gt;title1 j=c "Agenda";&lt;BR /&gt;title2 j=c "All The Interesting Things That Have Happened";&lt;BR /&gt;title3 j=c "Since We Last Had THis Meeting";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS _all_ close ;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 21:33:00 GMT</pubDate>
    <dc:creator>rmacarthur</dc:creator>
    <dc:date>2018-07-06T21:33:00Z</dc:date>
    <item>
      <title>Indenting rows selectively in PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476158#M21268</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC REPORT to generate a meeting agenda.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The major agenda topics are noted with whole numbers, 1.0, 2.0, 3.0, ect....&lt;/P&gt;&lt;P&gt;while the descriptive information is noted with decimals, 3.1, 4.1.&lt;/P&gt;&lt;P&gt;Not every major topic has descriptive information.&lt;/P&gt;&lt;P&gt;I'd like to INDENT the descriptive information only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do that?&lt;/P&gt;&lt;P&gt;Here is some sample data and code.&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Agenda_2;&lt;BR /&gt;input No Text1 $50. ;&lt;BR /&gt;datalines ;&lt;BR /&gt;1 Members and Attendance&lt;BR /&gt;2 Review Minutes of Previous Meeting&lt;BR /&gt;3 Interesting First Topic&lt;BR /&gt;3.1 All there is to be said about this extremely Interesting First Topic, indeed&lt;BR /&gt;4 Interesting Second Topic&lt;BR /&gt;4.1 A copious font of knowledge concerning this extremely Interesting second Topic, indeed&lt;BR /&gt;5 Interesting third Topic&lt;BR /&gt;6 Interesting fourth Topic&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;options papersize=letter orientation=portrait ps=80 ls=100 nocenter&lt;BR /&gt;LEFTMARGIN=0.75in RIGHTMARGIN=0.75in TOPMARGIN=1.0in BOTTOMMARGIN=0.75in&lt;BR /&gt;nodate nonumber;&lt;BR /&gt;ods rtf file="&amp;amp;tabout.\AG_PandT &amp;amp;datetime..rtf" ;&lt;/P&gt;&lt;P&gt;proc report data= Agenda_2 NOWD&lt;BR /&gt;style(report) = [bordercolor=white]&lt;BR /&gt;style(column) = [bordercolor=white]&lt;BR /&gt;style(header) = [bordercolor=white background = white]&lt;BR /&gt;style(summary) = [bordercolor=white] ;&lt;BR /&gt;column no text1 ;&lt;BR /&gt;define no / ' ' style(column)={cellwidth= 0.5 in} format=4.1 ;&lt;BR /&gt;define Text1 / ' ' style (column)={cellwidth=6.0 in} ;&lt;BR /&gt;title1 j=c "Agenda";&lt;BR /&gt;title2 j=c "All The Interesting Things That Have Happened";&lt;BR /&gt;title3 j=c "Since We Last Had THis Meeting";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS _all_ close ;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 21:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476158#M21268</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2018-07-06T21:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting rows selectively in PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476180#M21269</link>
      <description>&lt;P&gt;maybe this is helpful?: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report/m-p/422732" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report/m-p/422732&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 02:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476180#M21269</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-07T02:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting rows selectively in PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476190#M21270</link>
      <description>&lt;P&gt;HI:&lt;BR /&gt; You can do indenting a variety of ways -- either indent= or leftmargin= as a style= override. There have been previous forum postings about it. I showed an example of how to do it in this paper: &lt;A href="http://www2.sas.com/proceedings/forum2008/173-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/173-2008.pdf&lt;/A&gt; -- the paper showed specifically using ODS RTF with the JOURNAL style and the use of a helper variable to do the indenting.&lt;/P&gt;
&lt;P&gt;If I understand what you're indicating, it sounds like you want every x.1 line to be indented? Is that correct? So in the above data that you posted, you'd only indent 3.1 and 4.1?&lt;/P&gt;
&lt;P&gt;If that's the case, I'd probably use a CALL DEFINE for TEXT1 and set the style based on testing the value of NO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed your program that reads the data a bit. Your text was longer than $50. LS and PS have no impact on ODS RTF -- they are LISTING destination options. I used your NO variable to make TMPVAR, as a Helper variable and specified NO as an ORDER item. TMPVAR is tested for the value gt 0 to change the indent level using the LEFTMARGIN style attribute. I changed the way you got rid of borders by just using the JOURNAL style and turning off the 2 lines that come with JOURNAL style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Agenda_2;
length text1 $90;
infile datalines dlm=',' dsd;
input No Text1 $ ;
datalines ;
1, "Members and Attendance"
2, "Review Minutes of Previous Meeting"
3, "Interesting First Topic"
3.1, "All there is to be said about this extremely Interesting First Topic, indeed"
4, "Interesting Second Topic"
4.1, "A copious font of knowledge concerning this extremely Interesting second Topic, indeed"
5, "Interesting third Topic"
6, "Interesting fourth Topic"
run;

options papersize=letter orientation=portrait nocenter
    LEFTMARGIN=0.75in RIGHTMARGIN=0.75in 
    TOPMARGIN=1.0in BOTTOMMARGIN=0.75in
    nodate nonumber;
ods rtf file="/home/cynthia.zender/all_output/indent.rtf" 
  style=journal;

proc report data= Agenda_2 NOWD
   style(report)={rules=none frame=void cellspacing=0};
column no text1 ;
define no / order ' ' style(column)={cellwidth= 0.5 in} format=4.1 ;
define Text1 / display ' ' style (column)={cellwidth=6.0 in} ;
compute text1;
   tmpvar = no - int(no);
   if tmpvar gt 0 then do;
      call define(_col_,'style','style={leftmargin=.15in}');
   end;
endcomp;
title1 j=c "Agenda";
title2 j=c "All The Interesting Things That Have Happened";
title3 j=c "Since We Last Had THis Meeting";
run;

ODS rtf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 06:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476190#M21270</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-07-07T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Indenting rows selectively in PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476283#M21271</link>
      <description>&lt;P&gt;Cynthia and Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spot on, thank you both.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I was looking to just indent to rows where no=#.1, and now better understand the "call define" feature.&lt;/P&gt;&lt;P&gt;Much appreciated,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 13:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Indenting-rows-selectively-in-PROC-REPORT/m-p/476283#M21271</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2018-07-08T13:29:46Z</dc:date>
    </item>
  </channel>
</rss>

