<?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: Adding a Blank Line in Proc Report Output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/233068#M14621</link>
    <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response to this questions. I have got a similar scenario today and had to display a blank row after every subject. I followed your approach of using the compute after and it was working, however &lt;CODE&gt;i am get&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;ting two blank rows after every subject in the excel output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after grp;
line ' ';
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know the reason for it.&amp;nbsp; It should have displayed only one blank row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 13:39:02 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2015-11-04T13:39:02Z</dc:date>
    <item>
      <title>Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1544#M692</link>
      <description>When producing a table, it is often recommended that you put a blank line every 5 or 10 rows to increase readability.&lt;BR /&gt;
&lt;BR /&gt;
It is not clear whether you can do this with PROC REPORT.  Can you do this in PROC REPORT?&lt;BR /&gt;
&lt;BR /&gt;
If you can do it, how do you do it?&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Thu, 12 Oct 2006 17:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1544#M692</guid>
      <dc:creator>david2010</dc:creator>
      <dc:date>2006-10-12T17:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1545#M693</link>
      <description>Hi, David:&lt;BR /&gt;
  There are 2 possibilities -- inserting the line as one way of improving readability and improving readability by a second method, such as highlighting every other line in a very faint gray or green color.&lt;BR /&gt;
                 &lt;BR /&gt;
   If you have a very long report, then the easiest thing to do is to make a dummy variable in your dataset that can act as the signal to insert the blank line. Since you can only use the LINE statement at a breaking point in the report, your dummy variable must be a GROUP or ORDER variable. The following code shows how to address both issues ... using ODS HTML as the destination.&lt;BR /&gt;
[pre]&lt;BR /&gt;
** GRP will be the "every 5 signal" -- use a MOD on 6 because when I am on the sixth obs, then I have just finished with #5;&lt;BR /&gt;
** CNTR will be used for highlighting in the second example, but it is also used for setting GRP;&lt;BR /&gt;
data class;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  retain cntr grp;&lt;BR /&gt;
  if _n_ = 1 then grp = 1;&lt;BR /&gt;
  cntr+1;&lt;BR /&gt;
  if mod(cntr,6) = 0 then do;&lt;BR /&gt;
     ** reset CNTR and increment GRP var;&lt;BR /&gt;
     grp + 1;&lt;BR /&gt;
     cntr = 1;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
                              &lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=class;&lt;BR /&gt;
title 'what do grp and cntr vars look like';&lt;BR /&gt;
run;&lt;BR /&gt;
       &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='skipline5.html' style=sasweb;&lt;BR /&gt;
proc report data=class nowd;&lt;BR /&gt;
title 'Use GRP var only to skip a line';&lt;BR /&gt;
column grp name age height;&lt;BR /&gt;
define grp / group noprint;&lt;BR /&gt;
define name /display;&lt;BR /&gt;
define age/ display;&lt;BR /&gt;
define height/display;&lt;BR /&gt;
break after grp/;&lt;BR /&gt;
compute after grp;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
                              &lt;BR /&gt;
ods html file='altbar.html' style=sasweb;&lt;BR /&gt;
proc report data=class nowd;&lt;BR /&gt;
title 'Use GRP to skip every 5 and CNTR to change highlight';&lt;BR /&gt;
column grp cntr name age height;&lt;BR /&gt;
define grp / group noprint;&lt;BR /&gt;
define cntr/ display noprint;&lt;BR /&gt;
define name /display;&lt;BR /&gt;
define age/ display;&lt;BR /&gt;
define height/display;&lt;BR /&gt;
break after grp/;&lt;BR /&gt;
rbreak after/;&lt;BR /&gt;
compute after grp;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
compute cntr;&lt;BR /&gt;
  if mod(cntr,2) gt 0 then&lt;BR /&gt;
     call define(_ROW_,'STYLE',&lt;BR /&gt;
          'style={background=cxeeeeee}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
  I prefer the second example (without the blank line) when I'm reading, but other folks may have different preferences. I find the alternating lines make it easier to follow across the row. Of course, it could just be nostalgia for the greenbar paper we used to use for printing on the mainframe, too!&lt;BR /&gt;
                       &lt;BR /&gt;
  Good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 12 Oct 2006 19:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1545#M693</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-10-12T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1546#M694</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Your solutions are very helpful. &lt;BR /&gt;
&lt;BR /&gt;
As for the 'blank' line, how to put dashed line instead?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
David</description>
      <pubDate>Wed, 12 Sep 2007 21:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1546#M694</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-12T21:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1547#M695</link>
      <description>Hi David:&lt;BR /&gt;
  Well, it would be nice if you could put a dashed line. If your destination of interest was HTML, then you probably can use CSS style selectors to put a double line in. And, even as I type that and you think that this is a possibility, then let me just warn that IF you are taking your files from ODS HTML and/or ODS MSOFFICE2K and/or ODS TAGSETS.EXCELXP and opening the result file with Excel that the CSS method ONLY works in the browser -- not in Excel (and I can't remember about Word).&lt;BR /&gt;
&lt;BR /&gt;
In SAS 9.2 for RTF, there will be style attributes for top border, bottom border, etc, so you can set different borders for the top of a row vs the bottom of a row. For now, the empty line method or the shading method is what you have to do. (And before a bunch of folks remind me that you could fill the line with bunches of = signs or - symbols -- been there, done that -- it doesn't really look that nice, in my opinion.)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 12 Sep 2007 22:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/1547#M695</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-12T22:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/233068#M14621</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response to this questions. I have got a similar scenario today and had to display a blank row after every subject. I followed your approach of using the compute after and it was working, however &lt;CODE&gt;i am get&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;ting two blank rows after every subject in the excel output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after grp;
line ' ';
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know the reason for it.&amp;nbsp; It should have displayed only one blank row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/233068#M14621</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-11-04T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/233126#M14624</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Adding your new comment to a very, very old post is not a good idea. I missed your new posting in the middle of all the previous posts.&amp;nbsp; It would be better to start a new post and just include a link to the older post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Since you only posted 3 lines of code and did not indicate your destination of interest (how you were getting output to Excel -- ODS HTML, ODS MSOFFICE2K, ODS TAGSETS.EXCELXP, etc) or the rest of your code, it is nearly impossible to make a constructive comment or suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But if I want to put a blank line after EVERY name in a subset&amp;nbsp;from SASHELP.CLASS for example, I do NOT need a "helper" variable at all. See this example. When I run this example, I only get 1 blank line under every name in my subset.&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;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;ods html file='c:\temp\blank.html';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;ods tagsets.excelxp file='c:\temp\blank.xml' style=htmlblue;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;proc report data=sashelp.class(obs=5);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; column name age sex height weight;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; define name / order;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; compute after name;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; endcomp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="4"&gt;ods _all_ close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 17:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/233126#M14624</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-11-04T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Blank Line in Proc Report Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/301924#M17056</link>
      <description>&lt;P&gt;Could you please answer my question? It is posted here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Double-line-at-specific-location-in-proc-report/m-p/301917?nobounce=#M63963" target="_self"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Double-line-at-specific-location-in-proc-report/m-p/301917?nobounce=#M63963&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2016 22:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-Blank-Line-in-Proc-Report-Output/m-p/301924#M17056</guid>
      <dc:creator>Visiting</dc:creator>
      <dc:date>2016-10-02T22:28:00Z</dc:date>
    </item>
  </channel>
</rss>

