<?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: Inserting Lines of Text after specific rows in PROC REPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649610#M194784</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264750"&gt;@RandoDando&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to &lt;A href="https://support.sas.com/kb/37/763.html" target="_blank" rel="noopener"&gt;Sample 37763: Conditionally print a LINE statement in PROC REPORT&lt;/A&gt; you should use the &lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0gyd5fptpa0ufn100pj7ghozy6i.htm" target="_blank" rel="noopener"&gt;$VARYING&lt;EM&gt;w&lt;/EM&gt;.&lt;/A&gt; format and define &lt;FONT face="courier new,courier"&gt;len=0&lt;/FONT&gt; for the remaining rows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after row;
  len=50;
       if row= 5 then text='Group A';
  else if row=12 then text='Group B';
  else if row=33 then text='Group C';
  else len=0;
  line text $varying. len;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 May 2020 15:35:58 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-05-21T15:35:58Z</dc:date>
    <item>
      <title>Inserting Lines of Text after specific rows in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649563#M194761</link>
      <description>&lt;P&gt;I am trying to insert lines of text after 3 specific rows in my report in PROC REPORT.&amp;nbsp; I have a field called ROW which is called in the column statement and not printed in the report.&amp;nbsp; I want a line of text after row 5, row 12, and row 33.&amp;nbsp; &amp;nbsp;I tried this below and get a row after each row between 5 and 12, 12 and 33, etc...&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after row;
 	if row =5 then do;
   text='Group A'; len=50;
  end;

	if row =12 then do;
   text='Group B'; len=50;
  end;

  	if row =33  then do;
   text='Group C'; len=50;
  end;
  line text $50.  ;
   endcomp; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2020 14:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649563#M194761</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-05-21T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Lines of Text after specific rows in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649610#M194784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264750"&gt;@RandoDando&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to &lt;A href="https://support.sas.com/kb/37/763.html" target="_blank" rel="noopener"&gt;Sample 37763: Conditionally print a LINE statement in PROC REPORT&lt;/A&gt; you should use the &lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0gyd5fptpa0ufn100pj7ghozy6i.htm" target="_blank" rel="noopener"&gt;$VARYING&lt;EM&gt;w&lt;/EM&gt;.&lt;/A&gt; format and define &lt;FONT face="courier new,courier"&gt;len=0&lt;/FONT&gt; for the remaining rows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after row;
  len=50;
       if row= 5 then text='Group A';
  else if row=12 then text='Group B';
  else if row=33 then text='Group C';
  else len=0;
  line text $varying. len;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2020 15:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649610#M194784</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-21T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Lines of Text after specific rows in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649618#M194788</link>
      <description>&lt;P&gt;I actually tried using the $varying statement but it produced really cryptic, "unknown" errors in SAS, so I changed it back to 50. . I'll try it exactly the way you entered it and see...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Tried it as entered above and it worked.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Lines-of-Text-after-specific-rows-in-PROC-REPORT/m-p/649618#M194788</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-05-21T15:59:53Z</dc:date>
    </item>
  </channel>
</rss>

