<?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: ODS PDF Title statement in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437836#M20413</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is part of the code I use. Its not that the image is large or small, it places the same image on the next page and still outputs my SGPLOT graph on top of the image. see image attached ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;option nodate nonumber;&lt;BR /&gt;ODS PDF file="H:\* &amp;amp;dt..pdf" style=color&lt;BR /&gt;STARTPAGE=NEVER;&lt;BR /&gt;ODS escapechar="^";&lt;/P&gt;&lt;P&gt;title j=l '^S={preimage="H:\*.png"}'&lt;BR /&gt;j=c 'xxxxxxxxxxxx'&lt;BR /&gt;j=c " &amp;amp;StartDate. to &amp;amp;EndDate.";&lt;/P&gt;&lt;P&gt;ods layout start height=2.2in width=8in ;&lt;BR /&gt;options orientation=portrait&lt;BR /&gt;papersize = letter&lt;BR /&gt;topmargin=.5in bottommargin=.25in&lt;BR /&gt;leftmargin=.25in rightmargin=.25in;&lt;BR /&gt;ODS noproctitle;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS REGION ;&lt;BR /&gt;ODS PDF text="^S={just=l font_size=12pt font_weight=bold font_face=Arial}Summary:";&lt;BR /&gt;ODS PDF text="^S={width=100% just=J font_size=12pt font_face=Arial }&amp;amp;summary.";&lt;BR /&gt;ods layout end;&lt;BR /&gt;ods layout gridded columns=2 column_widths=(50% 50%) column_gutter=.25in ;&lt;BR /&gt;ODS REGION x=0in ;&lt;BR /&gt;ods graphics on / reset noborder height=3.5in;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA = age nowd style(header)=[foreground=white background=steel font_weight=bold];&lt;BR /&gt;.......&lt;BR /&gt;title1 "^S={just=l font_size=10pt font_face=Arial font_weight=bold}Table 1:&amp;nbsp;xxxxxx ( &amp;amp;WeekFrom., &amp;amp;YearFrom to Week &amp;amp;WeekTo., &amp;amp;YearTo)";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Multiple proc statements&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;&lt;BR /&gt;ODS Layout end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 23:58:51 GMT</pubDate>
    <dc:creator>HabAM</dc:creator>
    <dc:date>2018-02-15T23:58:51Z</dc:date>
    <item>
      <title>ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437819#M20408</link>
      <description>&lt;P&gt;I have an image in my title statement but can't contain it to the first page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to clear it with title; but didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any comments/advice is much appreciated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title j=l '^S={preimage="H:\*.png"}'&lt;BR /&gt;j=c 'xxxxxxxxxxxxxxxxxxxx'&lt;BR /&gt;j=c "&amp;nbsp; &amp;amp;StartDate. to &amp;amp;EndDate.";&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437819#M20408</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2018-02-15T23:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437822#M20409</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried to clear it with title; but didn't work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;What does that mean?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is the image too big to fit on one page or is it appearing on multiple pages even though it's small enough to fit on one page. If it's too big you'll need to resize it first.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437822#M20409</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T23:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437823#M20410</link>
      <description>&lt;P&gt;Hi: &lt;BR /&gt; I am not sure that *.png is a valid file name. Can you show a picture of what you mean when you say "you cannot contain it to the first page"?&lt;BR /&gt;&lt;BR /&gt; A SAS TITLE statement is global. So if your procedure output produces multiple pages of output, then the TITLE statement would be in effect for the entire procedure and would appear on multiple pages. You cannot "clear" a title page in the middle of a procedure. You did not show any other code except for the title statement and I wonder whether you have a multi-page PDF output and you only want the preimage on page 1.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't know what SAS Options or ODS PDF options you have in place, I just ran a little test using SASHELP.SHOES. I don't have an image on this machine to use, but I put a placeholder in the code. Right now, in this type of multi-page output, you cannot "reset" the title between pages. You can only reset the title between procedure steps.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let startdate = 01jan2018;
%let enddate = 15feb2018;
 
ods pdf file='c:\temp\test_title.pdf';
title j=l 'preimage here'
      j=c 'xxxxxxxxxxxxxxxxxxxx'
      j=c "  &amp;amp;StartDate. to &amp;amp;EndDate.";
 
proc print data=sashelp.shoes(obs=100);
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or else, you have to do something like display the first 35 observations on page 1 with the preimage and then display the rest of the observations after resetting the title. Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let startdate = 01jan2018;
%let enddate = 15feb2018;
 
ods pdf file='c:\temp\alt_title.pdf';
title j=l 'preimage here'
      j=c 'xxxxxxxxxxxxxxxxxxxx'
      j=c "  &amp;amp;StartDate. to &amp;amp;EndDate.";
 
proc print data=sashelp.shoes(obs=35);
run;

title 'New Title starts on page 2';
proc print data=sashelp.shoes(firstobs=36 obs=100);
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(you might have to fiddle with the obs= and firstobs= depending on your margin settings. My page got approx 35 obs per page using PROC PRINT.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437823#M20410</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-15T23:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437836#M20413</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is part of the code I use. Its not that the image is large or small, it places the same image on the next page and still outputs my SGPLOT graph on top of the image. see image attached ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;option nodate nonumber;&lt;BR /&gt;ODS PDF file="H:\* &amp;amp;dt..pdf" style=color&lt;BR /&gt;STARTPAGE=NEVER;&lt;BR /&gt;ODS escapechar="^";&lt;/P&gt;&lt;P&gt;title j=l '^S={preimage="H:\*.png"}'&lt;BR /&gt;j=c 'xxxxxxxxxxxx'&lt;BR /&gt;j=c " &amp;amp;StartDate. to &amp;amp;EndDate.";&lt;/P&gt;&lt;P&gt;ods layout start height=2.2in width=8in ;&lt;BR /&gt;options orientation=portrait&lt;BR /&gt;papersize = letter&lt;BR /&gt;topmargin=.5in bottommargin=.25in&lt;BR /&gt;leftmargin=.25in rightmargin=.25in;&lt;BR /&gt;ODS noproctitle;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS REGION ;&lt;BR /&gt;ODS PDF text="^S={just=l font_size=12pt font_weight=bold font_face=Arial}Summary:";&lt;BR /&gt;ODS PDF text="^S={width=100% just=J font_size=12pt font_face=Arial }&amp;amp;summary.";&lt;BR /&gt;ods layout end;&lt;BR /&gt;ods layout gridded columns=2 column_widths=(50% 50%) column_gutter=.25in ;&lt;BR /&gt;ODS REGION x=0in ;&lt;BR /&gt;ods graphics on / reset noborder height=3.5in;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA = age nowd style(header)=[foreground=white background=steel font_weight=bold];&lt;BR /&gt;.......&lt;BR /&gt;title1 "^S={just=l font_size=10pt font_face=Arial font_weight=bold}Table 1:&amp;nbsp;xxxxxx ( &amp;amp;WeekFrom., &amp;amp;YearFrom to Week &amp;amp;WeekTo., &amp;amp;YearTo)";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Multiple proc statements&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;&lt;BR /&gt;ODS Layout end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437836#M20413</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2018-02-15T23:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437867#M20415</link>
      <description>Hi: You have a preview of Excel but your code is ODS PDF with ODS LAYOUT and ODS REGION statements. For help debugging ODS PDF with ODS LAYOUT and ODS REGION, your best resource might be to open a track with Tech Support. ODS LAYOUT and ODS REGION are only supported by ODS PDF and ODS HTML, so I do not believe they will work with ODS EXCEL.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 16 Feb 2018 03:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437867#M20415</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-16T03:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437886#M20416</link>
      <description>&lt;P&gt;I did a screenshot. Please see the actual output.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437886#M20416</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2018-02-16T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437973#M20417</link>
      <description>Hi:&lt;BR /&gt;  Again, you don't show all your code, nor explain what is INSIDE your PROC REPORT, nor what code is putting the figures on the page. If you have a procedure step for every figure or every 2 figures, then you should be able to reset the title statement: &lt;BR /&gt;title;&lt;BR /&gt;between the procedure that does Figure 2 at the end of page 1 and the procedure that does Figure 3 and 4 at the top of page 2.&lt;BR /&gt;&lt;BR /&gt;Otherwise, I suggestion working with Tech Support, as they can look at ALL your code and make a more constructive suggestion.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 16 Feb 2018 14:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437973#M20417</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-16T14:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Title statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437981#M20418</link>
      <description>Thank you Cynthia&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Title-statement/m-p/437981#M20418</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2018-02-16T14:34:55Z</dc:date>
    </item>
  </channel>
</rss>

