<?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 first page is blank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-first-page-is-blank/m-p/796371#M255541</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My rtf output is fine but my pdf has a blank page on the first page (except for footers and header which is coming from a template macro. Anyone know what the issue might be?&lt;/P&gt;&lt;P&gt;rtf:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1644950772975.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68497i8EF816056BDFFD06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1644950772975.png" alt="HitmonTran_1-1644950772975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pd (blank)f:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_2-1644950818549.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68498i5EDB2748883D1A40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_2-1644950818549.png" alt="HitmonTran_2-1644950818549.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;proc report code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; 
ods listing close;
ods rtf file = "&amp;amp;analpath.\Output\&amp;amp;outname._&amp;amp;outp..rtf" startpage=no style= TLF_CN_9;
ods pdf file = "&amp;amp;analpath.\Output\&amp;amp;outname._&amp;amp;outp..pdf" startpage=no style= TLF_CN_9;
options orientation=landscape;
%titles_footnotes;

title3 &amp;amp;title3; 
 

footnote1 j=l " ";
 
 
proc report data = final1 nowd headline headskip missing split='@' style(header column)=[protectspecialchars=off];

		  columns ordx1 aebodsys subordx1 total1 aedecod  desc 
                 ("xxxx @(N=&amp;amp;trtgn1)" TRTxG1 TRTG1) ("xxx @(N=&amp;amp;trtgn2)" TRTxG2 TRTG2) ("xxxx" rd1)
	             ("xxxx @(N=&amp;amp;trtgn3)" TRTxG3 TRTG3) ("xxxx @(N=&amp;amp;trtgn4)" TRTxG4 TRTG4) ("xxxx" rd2);
		  define ordx1     / descending order     order=internal noprint;
		  define aebodsys  / order order=internal noprint;
		  define subordx1  / descending order  order=internal noprint;
		  define total1  / descending order  order=internal noprint;
		  define aedecod   / order order=internal noprint;

		  define desc    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=2 in ] flow " "; 
			 
		   define TRTxG1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		   define rd1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.75 in] "RD";

		  define TRTxG2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		  define TRTxG3 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG3 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		  define TRTxG4 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG4 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9  in] "Participants (%)";
		   
		  define rd2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "RD";

	      compute desc;
            if index(desc,'  ') = 1 then do;
                  call define(_col_, "style", "style=[asis=off leftmargin=0.25in]");
            end;
            if index(desc,'  ') = 0 then do;
                  call define(_col_, "style",   "style=[asis=on]");
            end;
          endcomp;

	  compute before aebodsys;
		 line  "";
	  endcomp; 
 

run;
  
ods rtf close;
ods pdf close;
ods listing;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 18:47:00 GMT</pubDate>
    <dc:creator>HitmonTran</dc:creator>
    <dc:date>2022-02-15T18:47:00Z</dc:date>
    <item>
      <title>proc report first page is blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-first-page-is-blank/m-p/796371#M255541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My rtf output is fine but my pdf has a blank page on the first page (except for footers and header which is coming from a template macro. Anyone know what the issue might be?&lt;/P&gt;&lt;P&gt;rtf:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1644950772975.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68497i8EF816056BDFFD06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1644950772975.png" alt="HitmonTran_1-1644950772975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pd (blank)f:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_2-1644950818549.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68498i5EDB2748883D1A40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_2-1644950818549.png" alt="HitmonTran_2-1644950818549.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;proc report code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; 
ods listing close;
ods rtf file = "&amp;amp;analpath.\Output\&amp;amp;outname._&amp;amp;outp..rtf" startpage=no style= TLF_CN_9;
ods pdf file = "&amp;amp;analpath.\Output\&amp;amp;outname._&amp;amp;outp..pdf" startpage=no style= TLF_CN_9;
options orientation=landscape;
%titles_footnotes;

title3 &amp;amp;title3; 
 

footnote1 j=l " ";
 
 
proc report data = final1 nowd headline headskip missing split='@' style(header column)=[protectspecialchars=off];

		  columns ordx1 aebodsys subordx1 total1 aedecod  desc 
                 ("xxxx @(N=&amp;amp;trtgn1)" TRTxG1 TRTG1) ("xxx @(N=&amp;amp;trtgn2)" TRTxG2 TRTG2) ("xxxx" rd1)
	             ("xxxx @(N=&amp;amp;trtgn3)" TRTxG3 TRTG3) ("xxxx @(N=&amp;amp;trtgn4)" TRTxG4 TRTG4) ("xxxx" rd2);
		  define ordx1     / descending order     order=internal noprint;
		  define aebodsys  / order order=internal noprint;
		  define subordx1  / descending order  order=internal noprint;
		  define total1  / descending order  order=internal noprint;
		  define aedecod   / order order=internal noprint;

		  define desc    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=2 in ] flow " "; 
			 
		   define TRTxG1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		   define rd1 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.75 in] "RD";

		  define TRTxG2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		  define TRTxG3 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG3 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9 in] "Participants (%)";

		  define TRTxG4 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "Events";
		   	define TRTG4 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.9  in] "Participants (%)";
		   
		  define rd2 			/display   style(header)=[just=center]    style(column) = [just=center cellwidth=.8 in] "RD";

	      compute desc;
            if index(desc,'  ') = 1 then do;
                  call define(_col_, "style", "style=[asis=off leftmargin=0.25in]");
            end;
            if index(desc,'  ') = 0 then do;
                  call define(_col_, "style",   "style=[asis=on]");
            end;
          endcomp;

	  compute before aebodsys;
		 line  "";
	  endcomp; 
 

run;
  
ods rtf close;
ods pdf close;
ods listing;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-first-page-is-blank/m-p/796371#M255541</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-15T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc report first page is blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-first-page-is-blank/m-p/796381#M255548</link>
      <description>fixed it. need to set to startpage=yes</description>
      <pubDate>Tue, 15 Feb 2022 19:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-first-page-is-blank/m-p/796381#M255548</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-15T19:06:46Z</dc:date>
    </item>
  </channel>
</rss>

