<?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: Putting reports in the middle of the page in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772460#M31076</link>
    <description>Thank you for responding. I'm not really looking to add summary statistics at the top of the page. I'm looking for a way to simply put reports in the middle of the page. Changing the top margin or adding more line " "; statements on top does not really help since every page has a different number of rows. If I add "options center" it centers the report within the left and right margins. I would like to center it from the top and bottom margins.</description>
    <pubDate>Wed, 06 Oct 2021 15:47:45 GMT</pubDate>
    <dc:creator>alfred1</dc:creator>
    <dc:date>2021-10-06T15:47:45Z</dc:date>
    <item>
      <title>Putting reports in the middle of the page</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772323#M31055</link>
      <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using proc report to create tables and I can't figure out how to vertically align the report in the middle of the page.&lt;/P&gt;&lt;P&gt;My data does not have a consistent number of rows and some of them only have 1 row while some can take up a whole page.&lt;/P&gt;&lt;P&gt;Here is a sample using sashelp.cars. The layout of my data is very similar to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1; set sashelp.cars;
run;

ods escapechar="^";
ods pdf file="D:\folders\myfolders\zzz test\test.pdf" uniform style=journal;
options leftmargin=0.25in rightmargin=0.25in topmargin=0.25in bottommargin=0.25in;
options nobyline nodate nonumber;
options missing="";

proc report data=test1
style(column)={fontsize=12pt} 
style(header)={fontsize=13pt fontweight=bold fontstyle=roman}
style(report)={frame=void}
;
by make;
columns make model type origin drivetrain msrp;
define make / group noprint;
define origin / group noprint;
define model / display style=[width=3in];
define type / display style=[width=1.95in just=c];
define drivetrain / display style=[width=1.5in just=c];
define msrp / display style=[width=1.5in just=c];

compute before _page_ / center;
length text1 $300;
length text2 $300;

text1= " ^{style[font_size=24pt font_weight=bold]Make: } ^{style[font_size=24pt]" ||strip(make)|| "}";
text2= " ^{style[font_size=24pt font_weight=bold]Origin: } ^{style[font_size=24pt]" ||strip(origin)||  "}";

line text1 $300.;
line " ";
line text2 $300.;
line " ";

endcomp;

run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Current result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfred1_0-1633477917510.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64389i342A204BF7EAB527/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfred1_0-1633477917510.png" alt="alfred1_0-1633477917510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wanted result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64390iF1813840B5935768/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test.PNG" alt="test.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried changing the top margin to something like 2in or adding multiple extra line " "; before the text but it's not the same as putting each table in the center of the page since each table does not have the same number of rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 23:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772323#M31055</guid>
      <dc:creator>alfred1</dc:creator>
      <dc:date>2021-10-05T23:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Putting reports in the middle of the page</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772373#M31068</link>
      <description>Go to Lisa Fine's paper for further reading.&lt;BR /&gt;PROC REPORT &lt;BR /&gt;by Example&lt;BR /&gt;Techniques for Building&lt;BR /&gt;Professional Reports Using SAS®&lt;BR /&gt;&lt;BR /&gt;Adapt the following code to your needs. &lt;BR /&gt;&lt;BR /&gt;compute before _PAGE_ / left; ➓&lt;BR /&gt;length text0 - text6 $100; &lt;BR /&gt;if _BREAK_=' ' then &lt;BR /&gt; do; &lt;BR /&gt; text0="^{style [font_size=12 pt textdecoration=underline]"&lt;BR /&gt;||strip(type2)||" MSRP Price Point}"; &lt;BR /&gt; text1="MSRP &amp;lt;=25th Percentile (" &lt;BR /&gt;||strip(put(per25.sum,dollar10.))||") ($)"; &lt;BR /&gt; text2="MSRP &amp;lt;=50th Percentile (" &lt;BR /&gt;||strip(put(per50.sum,dollar10.))||") ($$)"; &lt;BR /&gt; text3="MSRP &amp;lt;=75th Percentile (" &lt;BR /&gt;||strip(put(per75.sum,dollar10.))||") ($$$)"; &lt;BR /&gt; text4="MSRP &amp;gt; 75th Percentile ("&lt;BR /&gt;||strip(put(per75.sum,dollar10.))||") ($$$$)";&lt;BR /&gt;text5= &lt;BR /&gt; "^{style [font_face=wingdings font_size=12 pt foreground=blue]n}" &lt;BR /&gt;||"Lowest MSRP: " || strip(put(pmin.sum,dollar10.)); &lt;BR /&gt; text6= &lt;BR /&gt; "^{style [font_face=wingdings font_size=12 pt foreground=red]n}" &lt;BR /&gt;||"Highest MSRP: " || strip(put(pmax.sum,dollar10.)); &lt;BR /&gt; end; &lt;BR /&gt;&lt;BR /&gt;** Put New Variables in Line Statements; &lt;BR /&gt; line text0 $100.; &lt;BR /&gt; line ''; &lt;BR /&gt; line text1 $100.; &lt;BR /&gt; line text2 $100.; &lt;BR /&gt; line text3 $100.; &lt;BR /&gt; line text4 $100.; &lt;BR /&gt; line ''; &lt;BR /&gt; line text5 $100.; &lt;BR /&gt; line text6 $100.; &lt;BR /&gt;endcomp; &lt;BR /&gt;&lt;BR /&gt;compute before make; &lt;BR /&gt; line ''; &lt;BR /&gt;endcomp; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772373#M31068</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-10-06T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Putting reports in the middle of the page</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772460#M31076</link>
      <description>Thank you for responding. I'm not really looking to add summary statistics at the top of the page. I'm looking for a way to simply put reports in the middle of the page. Changing the top margin or adding more line " "; statements on top does not really help since every page has a different number of rows. If I add "options center" it centers the report within the left and right margins. I would like to center it from the top and bottom margins.</description>
      <pubDate>Wed, 06 Oct 2021 15:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Putting-reports-in-the-middle-of-the-page/m-p/772460#M31076</guid>
      <dc:creator>alfred1</dc:creator>
      <dc:date>2021-10-06T15:47:45Z</dc:date>
    </item>
  </channel>
</rss>

