<?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 Proc Report Break &amp;amp; Group in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-amp-Group/m-p/636832#M23913</link>
    <description>&lt;P&gt;Hello Team,&lt;BR /&gt;I am struggling to generate RTF as per below screen shot, My output is not coming as Group for COL1,COL2, and need to put blank line between (Break) COl1 after value 'Observed ' and 'Changed'&lt;BR /&gt;Note : The data should be in sort order of vars – ‘gpxpage paramn avisitn catno’&lt;BR /&gt;In Below screen shot have more columns , but in my out put column are restricted and will come next RTF page&lt;BR /&gt;I have attached the data set and same data set in excel sheet.&lt;BR /&gt;I need output like below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raja777pharma_0-1585825491359.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37672iEF0956E53FF10F66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raja777pharma_0-1585825491359.png" alt="raja777pharma_0-1585825491359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Current code and Output as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;
set table;
    if _n_ &amp;lt; 25 then gpxpage=1;
	  else gpxpage=2;
run;

title;
%prctmplt;
%ttlmaker;
ods listing close;
ods &amp;amp;outype file="%sysfunc(pathname(out))\&amp;amp;outname2..&amp;amp;outype" style=acrsstyle ;
run;
ods escapechar = '^';

proc Report data=report split='^' missing nowd spanrows headline headskip ;
	column gpxpage paramn avisitn catno col1 col2 col3 col4 col5 col6 col7  ;
	define gpxpage	/order order=internal "" noprint;
	define paramn	/order order=internal "" noprint;
	define avisitn /order order=internal "" noprint;
    define catno /order order=internal "" noprint;

	define col1 /&amp;amp;Header  group style(column)=[cellwidth=1.2in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
    define col2 /"Parameter"  group style(column)=[cellwidth=0.8in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
    define col3 /"Statistics"   style(column)=[cellwidth=0.9in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
	define col4 /&amp;amp;Header1.   style(column)=[cellwidth=1in	font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
	define col5 /&amp;amp;Header2.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
    define col6 /&amp;amp;Header3.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
    define col7 /&amp;amp;Header99.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];

	break after gpxpage / page;

	compute before gpxpage;
        line " ";
    endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My data set attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 11:07:29 GMT</pubDate>
    <dc:creator>raja777pharma</dc:creator>
    <dc:date>2020-04-02T11:07:29Z</dc:date>
    <item>
      <title>Proc Report Break &amp; Group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-amp-Group/m-p/636832#M23913</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;I am struggling to generate RTF as per below screen shot, My output is not coming as Group for COL1,COL2, and need to put blank line between (Break) COl1 after value 'Observed ' and 'Changed'&lt;BR /&gt;Note : The data should be in sort order of vars – ‘gpxpage paramn avisitn catno’&lt;BR /&gt;In Below screen shot have more columns , but in my out put column are restricted and will come next RTF page&lt;BR /&gt;I have attached the data set and same data set in excel sheet.&lt;BR /&gt;I need output like below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raja777pharma_0-1585825491359.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37672iEF0956E53FF10F66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raja777pharma_0-1585825491359.png" alt="raja777pharma_0-1585825491359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Current code and Output as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;
set table;
    if _n_ &amp;lt; 25 then gpxpage=1;
	  else gpxpage=2;
run;

title;
%prctmplt;
%ttlmaker;
ods listing close;
ods &amp;amp;outype file="%sysfunc(pathname(out))\&amp;amp;outname2..&amp;amp;outype" style=acrsstyle ;
run;
ods escapechar = '^';

proc Report data=report split='^' missing nowd spanrows headline headskip ;
	column gpxpage paramn avisitn catno col1 col2 col3 col4 col5 col6 col7  ;
	define gpxpage	/order order=internal "" noprint;
	define paramn	/order order=internal "" noprint;
	define avisitn /order order=internal "" noprint;
    define catno /order order=internal "" noprint;

	define col1 /&amp;amp;Header  group style(column)=[cellwidth=1.2in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
    define col2 /"Parameter"  group style(column)=[cellwidth=0.8in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
    define col3 /"Statistics"   style(column)=[cellwidth=0.9in font_face=Courier font_size=1.25just=l asis=on] style(hdr)=[just=l asis=on] flow;
	define col4 /&amp;amp;Header1.   style(column)=[cellwidth=1in	font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
	define col5 /&amp;amp;Header2.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
    define col6 /&amp;amp;Header3.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];
    define col7 /&amp;amp;Header99.  style(column)=[cellwidth=1in font_face=Courier font_size=1.25just=c asis=on] style(hdr)=[just=c asis=on];

	break after gpxpage / page;

	compute before gpxpage;
        line " ";
    endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My data set attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 11:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-amp-Group/m-p/636832#M23913</guid>
      <dc:creator>raja777pharma</dc:creator>
      <dc:date>2020-04-02T11:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Break &amp; Group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-amp-Group/m-p/636881#M23914</link>
      <description>HI:&lt;BR /&gt;  No need to post the same question in 2 different forums. This was also asked and answered here: &lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-report-RTF-Grouping-and-Break/td-p/636828" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-report-RTF-Grouping-and-Break/td-p/636828&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 02 Apr 2020 14:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-amp-Group/m-p/636881#M23914</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-02T14:18:31Z</dc:date>
    </item>
  </channel>
</rss>

