<?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 Add Space After By Group ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519295#M22062</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am trying to do something that should be simple but despite googling I can not find the answer. I&amp;nbsp;have code that produces a contact history per client and all I want to do is increase the space between the tables. I know I can use a compute after page but then it puts the bottom border after the space and this looks horrible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've shown below where I want the space - can anyone please help?&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sas_issue.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25445i41EC9E7EDDE33835/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_issue.png" alt="sas_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;I dont want to put the space above the table if possible as this will also look horrible (this is part of a wider report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation = landscape 
			papersize = A4 
			nodate 
			nobyline
			nonumber 
			missing = ''
			nocenter 
			topmargin 		= "0cm"
			bottommargin 	= "0cm"
	        leftmargin 		= "1.5cm" 
	        rightmargin 	= "1cm" ;

	ods graphics  no ;
	goptions dev=png;

	ods noresults escapechar = '~' ;

	ods pdf file = "/Demog/test.pdf"  
					compress = 9
					uniform
					pdftoc = 1
					startpage = no
					style = Journal ;


	ods proclabel = "Contact History" ;

	title1 c='#0B8080' h=14pt f='Arial' bold 'Contact History'; 

	proc report data = contact_history nowd
			style(header)=[foreground = #0B8080 
					   	   font_size=12pt 
						   font_face = arial
						   fontstyle = roman
						   just = l
						   font_weight = light]
			style(column)=[font_size=10pt 
						   font_face = arial
						   just = left] 
			style(lines)=Header{font=(Arial, 12pt) 
						 bordertopcolor= white
						 foreground = #0B8080 just = l};

			by swn client ;

			column 	swn client contact cd_type_wid startdt profile_end ;

			define swn / noprint order order=internal ;
			define client / noprint ;
			define contact / 'Contact' style = {cellwidth = 8cm} ;
			define cd_type_wid / 'Type' style = {cellwidth = 3cm} ;
			define startdt / 'Start Date' format = ddmmyy10. style = {cellwidth = 3cm} ;
			define profile_end / 'End Date' style = {cellwidth = 3cm} ;

		   compute contact;
		      count+1;
		      if mod(count,2) then do;
		         call define(_row_, "style", "style=[background=#DBECEC]");
		      end;
		   endcomp;

			compute before _page_;
				pgstr = catx(' ',client,cats('(',swn,')'));
				line pgstr $varying100. ;
			endcomp;

			break after swn / page; 

		run ;	

	ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help, really appreciated.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 22:02:53 GMT</pubDate>
    <dc:creator>SteveNZ</dc:creator>
    <dc:date>2018-12-06T22:02:53Z</dc:date>
    <item>
      <title>Add Space After By Group ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519295#M22062</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am trying to do something that should be simple but despite googling I can not find the answer. I&amp;nbsp;have code that produces a contact history per client and all I want to do is increase the space between the tables. I know I can use a compute after page but then it puts the bottom border after the space and this looks horrible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've shown below where I want the space - can anyone please help?&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sas_issue.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25445i41EC9E7EDDE33835/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_issue.png" alt="sas_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;I dont want to put the space above the table if possible as this will also look horrible (this is part of a wider report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation = landscape 
			papersize = A4 
			nodate 
			nobyline
			nonumber 
			missing = ''
			nocenter 
			topmargin 		= "0cm"
			bottommargin 	= "0cm"
	        leftmargin 		= "1.5cm" 
	        rightmargin 	= "1cm" ;

	ods graphics  no ;
	goptions dev=png;

	ods noresults escapechar = '~' ;

	ods pdf file = "/Demog/test.pdf"  
					compress = 9
					uniform
					pdftoc = 1
					startpage = no
					style = Journal ;


	ods proclabel = "Contact History" ;

	title1 c='#0B8080' h=14pt f='Arial' bold 'Contact History'; 

	proc report data = contact_history nowd
			style(header)=[foreground = #0B8080 
					   	   font_size=12pt 
						   font_face = arial
						   fontstyle = roman
						   just = l
						   font_weight = light]
			style(column)=[font_size=10pt 
						   font_face = arial
						   just = left] 
			style(lines)=Header{font=(Arial, 12pt) 
						 bordertopcolor= white
						 foreground = #0B8080 just = l};

			by swn client ;

			column 	swn client contact cd_type_wid startdt profile_end ;

			define swn / noprint order order=internal ;
			define client / noprint ;
			define contact / 'Contact' style = {cellwidth = 8cm} ;
			define cd_type_wid / 'Type' style = {cellwidth = 3cm} ;
			define startdt / 'Start Date' format = ddmmyy10. style = {cellwidth = 3cm} ;
			define profile_end / 'End Date' style = {cellwidth = 3cm} ;

		   compute contact;
		      count+1;
		      if mod(count,2) then do;
		         call define(_row_, "style", "style=[background=#DBECEC]");
		      end;
		   endcomp;

			compute before _page_;
				pgstr = catx(' ',client,cats('(',swn,')'));
				line pgstr $varying100. ;
			endcomp;

			break after swn / page; 

		run ;	

	ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help, really appreciated.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519295#M22062</guid>
      <dc:creator>SteveNZ</dc:creator>
      <dc:date>2018-12-06T22:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add Space After By Group ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519314#M22063</link>
      <description>I'm going to guess you can do that with extra 'blank' LINE statements? If you get a line that you don't want, you can change it with the STYLE options?</description>
      <pubDate>Thu, 06 Dec 2018 23:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519314#M22063</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-06T23:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Space After By Group ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519316#M22064</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Is this closer to the spacing you want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdf_extra_space.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25446iD4F11ADA60DB0290/image-size/large?v=v2&amp;amp;px=999" role="button" title="pdf_extra_space.png" alt="pdf_extra_space.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Experiment with adding blanks in the COMPUTE BEFORE _PAGE_. After I made some fake data from SASHELP.CLASS, that's what gave me the wider gap between BY groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519316#M22064</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-06T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add Space After By Group ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519492#M22066</link>
      <description>&lt;P&gt;In the compute blocks you can specify a style, this allows you to set the cell height.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this code example, the yellow background is just to show the area that is taken by the compute after _page_ style definition.&lt;/P&gt;
&lt;P&gt;You do need&amp;nbsp;the LINE statement otherwise nothing is produced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class_s;
  by age;
run;

ods pdf file="c:\temp\sample.pdf" startpage=no style=journal;

proc report data=class_s
  style(report) = { width=100pct }
;
  by age;

  column age name sex height;

  define age / display noprint;
  define name / display;
  define sex / display;
  define height / analysis sum;

  compute after _page_ / style={height=2cm background=yellow just=l BORDERBOTTOMcolor=white};
/*    line "after page for " age z4.;*/
    line " ";
  endcomp;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 17:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519492#M22066</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-12-07T17:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add Space After By Group ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519764#M22067</link>
      <description>&lt;P&gt;Thanks all for replying, really appreciated. Bruno your solution is perfect thanks. I was trying all sorts in the compute after page style but didn't have the line in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sun, 09 Dec 2018 19:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-Space-After-By-Group-ODS-PDF/m-p/519764#M22067</guid>
      <dc:creator>SteveNZ</dc:creator>
      <dc:date>2018-12-09T19:32:00Z</dc:date>
    </item>
  </channel>
</rss>

