<?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 Problems with break after/compute after in Proc Report in ODS Excelxp tagset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247055#M15195</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im using SAS 9.4 and trying to do an proc report but can´t get the last finished touch to it. It seems as if there is a lot on&amp;nbsp;this subjects, but none of the solutions I have tried has worked. All variables except for var0 and grp are numeric. The xml/xlsx-output is attached.&lt;/P&gt;
&lt;P&gt;In short;&lt;/P&gt;
&lt;P&gt;I have 2 groups of data (0 &amp;amp; 1). Between them I want first some space (i.e. an empty line) then a title above the next group. That is what I try to do in the code below with the "compute after grp" part of the code. For this reason I created the "grp"-variable (values 0 &amp;amp; 1) that does not show, and should not show, in the final report. But I&amp;nbsp;haven´t fully grasped the "break", "rbreak", "compute after" code, because &amp;nbsp;in my attempts I keep getting the empty line &amp;amp; a title between grp 0 and 1 AND&amp;nbsp;BELOW GROUP&amp;nbsp;1. But I only want it between groups 0 and 1. Any suggestions on how to rewrite the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code:&lt;/P&gt;
&lt;P&gt;ods html;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ODS NORESULTS;&lt;BR /&gt;ods tagsets.ExcelXP path='C:\Users\user\Desktop\testing' file='testfile.xml'&lt;BR /&gt;style=printer;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*my proc code is here*/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute after grp / style=[background=lightgray font_weight=bold];&lt;BR /&gt;if grp='0' then do;&lt;BR /&gt;line ' ';&lt;BR /&gt;line 'next_group';&lt;BR /&gt;end;&lt;BR /&gt;endcomp; &lt;BR /&gt;run; title1; title2; title3; title4; quit;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for any suggestions &amp;amp; solutions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2016 07:49:05 GMT</pubDate>
    <dc:creator>Hank</dc:creator>
    <dc:date>2016-02-01T07:49:05Z</dc:date>
    <item>
      <title>Problems with break after/compute after in Proc Report in ODS Excelxp tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247055#M15195</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im using SAS 9.4 and trying to do an proc report but can´t get the last finished touch to it. It seems as if there is a lot on&amp;nbsp;this subjects, but none of the solutions I have tried has worked. All variables except for var0 and grp are numeric. The xml/xlsx-output is attached.&lt;/P&gt;
&lt;P&gt;In short;&lt;/P&gt;
&lt;P&gt;I have 2 groups of data (0 &amp;amp; 1). Between them I want first some space (i.e. an empty line) then a title above the next group. That is what I try to do in the code below with the "compute after grp" part of the code. For this reason I created the "grp"-variable (values 0 &amp;amp; 1) that does not show, and should not show, in the final report. But I&amp;nbsp;haven´t fully grasped the "break", "rbreak", "compute after" code, because &amp;nbsp;in my attempts I keep getting the empty line &amp;amp; a title between grp 0 and 1 AND&amp;nbsp;BELOW GROUP&amp;nbsp;1. But I only want it between groups 0 and 1. Any suggestions on how to rewrite the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code:&lt;/P&gt;
&lt;P&gt;ods html;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ODS NORESULTS;&lt;BR /&gt;ods tagsets.ExcelXP path='C:\Users\user\Desktop\testing' file='testfile.xml'&lt;BR /&gt;style=printer;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*my proc code is here*/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute after grp / style=[background=lightgray font_weight=bold];&lt;BR /&gt;if grp='0' then do;&lt;BR /&gt;line ' ';&lt;BR /&gt;line 'next_group';&lt;BR /&gt;end;&lt;BR /&gt;endcomp; &lt;BR /&gt;run; title1; title2; title3; title4; quit;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for any suggestions &amp;amp; solutions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 07:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247055#M15195</guid>
      <dc:creator>Hank</dc:creator>
      <dc:date>2016-02-01T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with break after/compute after in Proc Report in ODS Excelxp tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247153#M15196</link>
      <description>&lt;P&gt;I have no time to test your code , just some advice . and post a picture to explain your question, That would be better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute after grp / style=[background=lightgray font_weight=bold];
 x='next_group';
if grp='0' then len=20;
 else len=0;
line x $varying20. len ;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Feb 2016 02:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247153#M15196</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-02-01T02:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with break after/compute after in Proc Report in ODS Excelxp tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247162#M15198</link>
      <description>&lt;P&gt;Thanks a lot, that worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 07:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problems-with-break-after-compute-after-in-Proc-Report-in-ODS/m-p/247162#M15198</guid>
      <dc:creator>Hank</dc:creator>
      <dc:date>2016-02-01T07:49:50Z</dc:date>
    </item>
  </channel>
</rss>

