<?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 Template - Margin for title and data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Margin-for-title-and-data/m-p/394649#M19300</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create PDF output title is starting from .5 in left and body is starting from 1.25in. I am bit confused what statement should be chnaged in proc template to start both from same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached here the file which I am facing issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style std/store=templates;&lt;BR /&gt;parent = Styles.rtf ;&lt;BR /&gt;class fonts /&lt;BR /&gt;'TitleFont' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'TitleFont2' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'footFont' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'StrongFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'EmphasisFont' = ("Courier, Times Roman, Times", 8pt,Italic)&lt;BR /&gt;'headingEmphasisFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'headingFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'docFont' = ("Courier, Times Roman, Times",8pt)&lt;BR /&gt;'FixedEmphasisFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedStrongFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedHeadingFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'BatchFixedFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedFont' = ("Courier, Times Roman, Times", 8pt) ;&lt;/P&gt;&lt;P&gt;class color_list / 'link'= blue 'bgH' = white 'bgT' = white 'bgD' = white 'fg' = black 'bg' = white ;&lt;/P&gt;&lt;P&gt;style Table from Output / cellpadding=2pt cellspacing=0.25pt just=center rules = groups frame= above ;&lt;/P&gt;&lt;P&gt;replace headersandFooters from cell/ font = fonts('HeadingFont') foreground = blank background = white;&lt;/P&gt;&lt;P&gt;class systemtitle / protectspecialchars=OFF asis=ON ;&lt;BR /&gt;class systemfooter / font=Fonts('footFont') protectspecialchars=OFF asis=ON ;&lt;BR /&gt;class text / 'continued' = " " ;&lt;BR /&gt;class continued / pretext=text('continued') width=_undef_ frame=void rules=none cellpadding = .6pt cellspacing = 0 ;&lt;BR /&gt;class header / protectspecialchars=off ;&lt;BR /&gt;class data / protectspecialchars=off ;&lt;BR /&gt;class rowheader / protectspecialchars=off ;&lt;BR /&gt;class usertext / protectspecialchars=off ;&lt;BR /&gt;class byline / protectspecialchars=off ;&lt;BR /&gt;/* style header from headersandfooters / protectspecialchars=OFF just=center cellpadding=0 cellspacing=0 font_weight=bold; */ *controlling Column Names*;&lt;BR /&gt;style table from output / just=center frame=above rules=groups background=color_list('bgT');&lt;BR /&gt;style data from cell / outputwidth=100% cellpadding=1 cellspacing=1 asis=on protectspecialchars=OFF nobreakspace=OFF asis=ON;&lt;BR /&gt;style body from document / leftmargin=0.5in rightmargin=0.5in topmargin=1.0in bottommargin=1.0in;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;%mend std_ods_style;&lt;BR /&gt;%std_ods_style;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Report.JPEG" style="width: 247px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14962i0288AFCD1D767B10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Report.JPEG" alt="Report.JPEG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 12:39:42 GMT</pubDate>
    <dc:creator>vandhan</dc:creator>
    <dc:date>2017-09-11T12:39:42Z</dc:date>
    <item>
      <title>Proc Template - Margin for title and data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Margin-for-title-and-data/m-p/394649#M19300</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create PDF output title is starting from .5 in left and body is starting from 1.25in. I am bit confused what statement should be chnaged in proc template to start both from same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached here the file which I am facing issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style std/store=templates;&lt;BR /&gt;parent = Styles.rtf ;&lt;BR /&gt;class fonts /&lt;BR /&gt;'TitleFont' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'TitleFont2' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'footFont' = ("Courier, Times Roman, Times", 8pt )&lt;BR /&gt;'StrongFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'EmphasisFont' = ("Courier, Times Roman, Times", 8pt,Italic)&lt;BR /&gt;'headingEmphasisFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'headingFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'docFont' = ("Courier, Times Roman, Times",8pt)&lt;BR /&gt;'FixedEmphasisFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedStrongFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedHeadingFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'BatchFixedFont' = ("Courier, Times Roman, Times", 8pt)&lt;BR /&gt;'FixedFont' = ("Courier, Times Roman, Times", 8pt) ;&lt;/P&gt;&lt;P&gt;class color_list / 'link'= blue 'bgH' = white 'bgT' = white 'bgD' = white 'fg' = black 'bg' = white ;&lt;/P&gt;&lt;P&gt;style Table from Output / cellpadding=2pt cellspacing=0.25pt just=center rules = groups frame= above ;&lt;/P&gt;&lt;P&gt;replace headersandFooters from cell/ font = fonts('HeadingFont') foreground = blank background = white;&lt;/P&gt;&lt;P&gt;class systemtitle / protectspecialchars=OFF asis=ON ;&lt;BR /&gt;class systemfooter / font=Fonts('footFont') protectspecialchars=OFF asis=ON ;&lt;BR /&gt;class text / 'continued' = " " ;&lt;BR /&gt;class continued / pretext=text('continued') width=_undef_ frame=void rules=none cellpadding = .6pt cellspacing = 0 ;&lt;BR /&gt;class header / protectspecialchars=off ;&lt;BR /&gt;class data / protectspecialchars=off ;&lt;BR /&gt;class rowheader / protectspecialchars=off ;&lt;BR /&gt;class usertext / protectspecialchars=off ;&lt;BR /&gt;class byline / protectspecialchars=off ;&lt;BR /&gt;/* style header from headersandfooters / protectspecialchars=OFF just=center cellpadding=0 cellspacing=0 font_weight=bold; */ *controlling Column Names*;&lt;BR /&gt;style table from output / just=center frame=above rules=groups background=color_list('bgT');&lt;BR /&gt;style data from cell / outputwidth=100% cellpadding=1 cellspacing=1 asis=on protectspecialchars=OFF nobreakspace=OFF asis=ON;&lt;BR /&gt;style body from document / leftmargin=0.5in rightmargin=0.5in topmargin=1.0in bottommargin=1.0in;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;%mend std_ods_style;&lt;BR /&gt;%std_ods_style;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Report.JPEG" style="width: 247px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14962i0288AFCD1D767B10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Report.JPEG" alt="Report.JPEG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Margin-for-title-and-data/m-p/394649#M19300</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2017-09-11T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template - Margin for title and data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Margin-for-title-and-data/m-p/394674#M19301</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Without going into the world of templates, I can illustrate the opposite of what you're seeing, by stretching the table output to 100% -- which means it will take up all the space from margin to margin, as shown below (for RTF):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example_margins_table_title.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14964i58CC902F21DC4169/image-size/large?v=v2&amp;amp;px=999" role="button" title="example_margins_table_title.png" alt="example_margins_table_title.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, ODS will center the table output within the margins for paged destinations like RTF and PDF. So either you use NOCENTER to make the table flush left or you stretch the table using width=100%, as shown in my code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With short titles or long titles, they too will be centered in the margins. If you use J=L or J=R in the title, you can see where the margins are as I set them in the OPTIONS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options topmargin=.5in bottommargin=.5in leftmargin=.5in rightmargin=.5in;
ods rtf file='c:\temp\stretch.rtf';

title1 j=l 'Left' j=c 'Center' j=r 'Right';
title2 'Short Title';
title3 'This is Really a Very, Very, Very, Very, Very, Very, Very (Really) Very Long Long Title';
proc report data=sashelp.class
     style(report)={width=100%};
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 13:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Margin-for-title-and-data/m-p/394674#M19301</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-09-11T13:34:50Z</dc:date>
    </item>
  </channel>
</rss>

