<?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: TROUBLE GETTING PROPER BREAK IN PROC REPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885462#M349888</link>
    <description>&lt;P&gt;If you only need lines on the top and the bottom of your report, try to group also grpxsort1 variable, and add another compute block to add a line before, that's something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd;
	length ae $25;
	input grp1 grp2 ae $;
	cards;
1, 0, List of AE by group
1, 1, Group 1 Disorders
1, 1, Nausea
1, 1, Anaemia
1, 1, Vomiting
1, 2, Group 2 Disorders
1, 2, Pyrexia
1, 2, Fatigue
1, 2, Malaise
;
proc print;run; 

ods rtf file= "&amp;amp;lib\have.rtf";
proc report data=have ;
	column grp1 grp2 ae;
	define grp1/ group noprint;
	define grp2/ group noprint;
	define ae/ 'Adverse Events' display;
	compute before grp1;
		line @1 "";
	endcomp;
	compute after grp2;
		line @1 "";
	endcomp; 
run; 
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85917iAB2C8B4A3D19656A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" alt="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; Style attributes could be added to apply a desired indentation and format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 14:14:10 GMT</pubDate>
    <dc:creator>A_Kh</dc:creator>
    <dc:date>2023-07-19T14:14:10Z</dc:date>
    <item>
      <title>TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885440#M349880</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a proper break (blank rows) between&amp;nbsp; each group and at start and end of the table body, however later part is not working with my current setting of logic. Alongside, blank rows in between each AEBODSYS, I also want to see spaces at highlighted points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="space issue.PNG" style="width: 234px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85912iA72DEE8569EB8843/image-dimensions/234x354?v=v2" width="234" height="354" role="button" title="space issue.PNG" alt="space issue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data ( variable used to get the spaces is grpxSort2) as shown here: However, with current SAS logic, I'm not able to get the proper formatting. Any suggesting please? Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="snap_data.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85913iFDE5E18E8D9480AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snap_data.PNG" alt="snap_data.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="snap_code.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85914iA9E01719B68F6C23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snap_code.PNG" alt="snap_code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885440#M349880</guid>
      <dc:creator>NEWMANSAS</dc:creator>
      <dc:date>2023-07-19T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885441#M349881</link>
      <description>The output destination is RTF</description>
      <pubDate>Wed, 19 Jul 2023 12:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885441#M349881</guid>
      <dc:creator>NEWMANSAS</dc:creator>
      <dc:date>2023-07-19T12:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885449#M349882</link>
      <description>&lt;P&gt;You need to GROUP your &lt;CODE class=" language-sas"&gt;grpxsort2&lt;/CODE&gt;variable in the define statement.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define grpxsort2/ group noprint;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885449#M349882</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2023-07-19T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885452#M349884</link>
      <description>It is still the same as previous output.</description>
      <pubDate>Wed, 19 Jul 2023 13:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885452#M349884</guid>
      <dc:creator>NEWMANSAS</dc:creator>
      <dc:date>2023-07-19T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885459#M349887</link>
      <description>&lt;P&gt;If you want a working solution you need to provide:&lt;/P&gt;
&lt;P&gt;1) actual data in the form of data step code so we have something besides a picture to test code with&lt;/P&gt;
&lt;P&gt;2) the complete proc report code you are attempting. Simple things like the order of variables on a columns statement have a big impact on the behavior of proc report not to mention any other proc options. Code should be TEXT. I am afraid that very few of us are going to retype significant elements from a picture. It should be easier to copy code from the editor, or log results, and then paste the copied text into a text box opened on the forum using the &amp;lt;/&amp;gt; icon that appears above the message window than to make a picture and attach that.&lt;/P&gt;
&lt;P&gt;3) an actual description of the desired formatting. I am not sure exactly what you are expecting. I am afraid that pictures and arrows don't quite tell us if something appears BEFORE or AFTER a value or what the actual conditions based on the data may be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the LOG often includes clues about when the procedure is overriding a syntax issue or incorrect use of an option. So an example log&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885459#M349887</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-19T14:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885462#M349888</link>
      <description>&lt;P&gt;If you only need lines on the top and the bottom of your report, try to group also grpxsort1 variable, and add another compute block to add a line before, that's something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd;
	length ae $25;
	input grp1 grp2 ae $;
	cards;
1, 0, List of AE by group
1, 1, Group 1 Disorders
1, 1, Nausea
1, 1, Anaemia
1, 1, Vomiting
1, 2, Group 2 Disorders
1, 2, Pyrexia
1, 2, Fatigue
1, 2, Malaise
;
proc print;run; 

ods rtf file= "&amp;amp;lib\have.rtf";
proc report data=have ;
	column grp1 grp2 ae;
	define grp1/ group noprint;
	define grp2/ group noprint;
	define ae/ 'Adverse Events' display;
	compute before grp1;
		line @1 "";
	endcomp;
	compute after grp2;
		line @1 "";
	endcomp; 
run; 
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85917iAB2C8B4A3D19656A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" alt="d202d692-55fe-46cc-a5a0-50faf0e79e26.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; Style attributes could be added to apply a desired indentation and format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885462#M349888</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2023-07-19T14:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: TROUBLE GETTING PROPER BREAK IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885584#M349959</link>
      <description>compute before ;&lt;BR /&gt;  line  " ";&lt;BR /&gt; endcomp;&lt;BR /&gt; compute after ;&lt;BR /&gt;  line  " ";&lt;BR /&gt; endcomp;</description>
      <pubDate>Thu, 20 Jul 2023 11:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TROUBLE-GETTING-PROPER-BREAK-IN-PROC-REPORT/m-p/885584#M349959</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-20T11:36:24Z</dc:date>
    </item>
  </channel>
</rss>

