<?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 Having trouble adding blank lines in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964609#M375655</link>
    <description>&lt;P&gt;I'm having trouble adding blank lines in proc report. I'd like to have a blank line everytime the Make changes for improved readability.&amp;nbsp; From googling I thought it's just the compute block part of my code below.&lt;/P&gt;&lt;PRE&gt;proc report data=sashelp.cars out=test_out(drop=_BREAK_);
	column Make Cylinders n;
	define Make / group;
	define Cylinders / group;
	define n / 'Count';
	compute after Make;
		line=' ';
	endcomp;
run;&lt;/PRE&gt;&lt;P&gt;Below is what the 1st few rows of what's in the report. I'd like blank rows where I indicated with &amp;lt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluelesssas_0-1744995889901.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106330i55DD89552198C117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cluelesssas_0-1744995889901.png" alt="cluelesssas_0-1744995889901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is test_out. It seems extra rows are added (highlighted) but they are not blank. As a side note, note how row 2 repeats 'Acura' but above only has each Make 1x. This part is also confusing to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluelesssas_1-1744996011222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106331iE12849E89D40EA20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cluelesssas_1-1744996011222.png" alt="cluelesssas_1-1744996011222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does any1 know how to actually get blank rows? Thx in advance for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 17:09:53 GMT</pubDate>
    <dc:creator>cluelesssas</dc:creator>
    <dc:date>2025-04-18T17:09:53Z</dc:date>
    <item>
      <title>Having trouble adding blank lines in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964609#M375655</link>
      <description>&lt;P&gt;I'm having trouble adding blank lines in proc report. I'd like to have a blank line everytime the Make changes for improved readability.&amp;nbsp; From googling I thought it's just the compute block part of my code below.&lt;/P&gt;&lt;PRE&gt;proc report data=sashelp.cars out=test_out(drop=_BREAK_);
	column Make Cylinders n;
	define Make / group;
	define Cylinders / group;
	define n / 'Count';
	compute after Make;
		line=' ';
	endcomp;
run;&lt;/PRE&gt;&lt;P&gt;Below is what the 1st few rows of what's in the report. I'd like blank rows where I indicated with &amp;lt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluelesssas_0-1744995889901.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106330i55DD89552198C117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cluelesssas_0-1744995889901.png" alt="cluelesssas_0-1744995889901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is test_out. It seems extra rows are added (highlighted) but they are not blank. As a side note, note how row 2 repeats 'Acura' but above only has each Make 1x. This part is also confusing to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluelesssas_1-1744996011222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106331iE12849E89D40EA20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cluelesssas_1-1744996011222.png" alt="cluelesssas_1-1744996011222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does any1 know how to actually get blank rows? Thx in advance for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 17:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964609#M375655</guid>
      <dc:creator>cluelesssas</dc:creator>
      <dc:date>2025-04-18T17:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding blank lines in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964611#M375656</link>
      <description>&lt;P&gt;Use the LINE statement.&amp;nbsp; Your code it trying to make new variable named LINE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
	column Make Cylinders n;
	define Make / group;
	define Cylinders / group;
	define n / 'Count';
	compute after Make;
		line @1 ' ';
	endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1744996335956.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106332i1BBD59EE5D6CF98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1744996335956.png" alt="Tom_0-1744996335956.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Why are you use the OUT= option on PROC REPORT?&amp;nbsp; If you want to make a dataset then why not just run a data step?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.cars nway;
  class Make Cylinders ;
  output out=test(drop=_type_ rename=(_freq_=Count));
run;

data test;
  set test;
  by make;
  output;
  if last.make then do;
    call missing(of _all_);
    output;
  end;
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1744996584867.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106333iDACC67816262367B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1744996584867.png" alt="Tom_0-1744996584867.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 17:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964611#M375656</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-18T17:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding blank lines in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964659#M375673</link>
      <description>&lt;P&gt;&amp;nbsp;Thx Tom. I was dumb I didn't see there wasn't an = in the line statement.&lt;/P&gt;&lt;P&gt;As for why I tried to save output from proc report, it's because the deliverable I needed to make asked for the same summary tables to be put on multiple different sheets. Since the reports take some time to generate I didn't want to have SAS generate the exact same thing multiple times.&lt;/P&gt;&lt;P&gt;I think the way to go for me to save output is something like what you did in your 2nd code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc report data=in_data out=out_summary;
*do a lot of stuff;
run;

proc report data=out_summary; *still not sure why this wont print the exact same thing!;
run;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Apr 2025 02:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964659#M375673</guid>
      <dc:creator>cluelesssas</dc:creator>
      <dc:date>2025-04-19T02:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding blank lines in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964660#M375674</link>
      <description>&lt;P&gt;It does print the same thing because that is not what PROC REPORT is intended to do.&amp;nbsp; PROC REPORT is for printing reports.&amp;nbsp; Not sure what value is gotten out of saving the data it generated, but if you want that to reprint you probably need to use a different PROC REPORT step that the one you used to generate those statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will probably be much easier to just use normal SAS code to generate the statistics, like the PROC SUMMARY step I showed.&amp;nbsp; Then you can print it with PROC PRINT or perhaps with PROC REPORT if you want some formatting that PROC PRINT cannot do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of if you literally need the same output printed over and over then perhaps use PROC DOCUMENT to copy the ODS generate output multiple times?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 02:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-adding-blank-lines-in-proc-report/m-p/964660#M375674</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-19T02:31:28Z</dc:date>
    </item>
  </channel>
</rss>

