<?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 Output issue with macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912273#M359647</link>
    <description>&lt;P&gt;On your ODS PDF and ODS RTF statements, you can add the options nogtitle and nogfootnote.&amp;nbsp; That will tell SGPLOT to add the titles outside of the graph image. It basically makes them titles for the page, instead of a title within the graph area. As an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="Q:\junk\foo.pdf" nogtitle ;
title "hello" ;
proc sgplot data=sashelp.class ;
  scatter x=height y=weight ;
run ;
title;
ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As a side note, when posting a question, it's helpful to post a small example of your problem.&amp;nbsp; In this case, since your question is not really about macros, it would be clearer to show a little example focused on the positions of titles and footnotes.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 20:42:05 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2024-01-19T20:42:05Z</dc:date>
    <item>
      <title>Title and Footnote positioning in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912270#M359645</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having an issue with titles and footnotes in a macro I developed&amp;nbsp; using CDISC PILOT Study Data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
    /* Open ODS destination based on specified output type and path */
   %if (%upcase(&amp;amp;output_type) = PDF) and (&amp;amp;output_path ne ) %then %do;
    ods escapechar='~';
    ods pdf file="&amp;amp;outpath./&amp;amp;outname..pdf"
    image_dpi = 300;
   %end;
   %else %if (%upcase(&amp;amp;output_type) = RTF) and (&amp;amp;output_path ne ) %then %do;
    ods escapechar='~';
    ods rtf file = "&amp;amp;outpath./&amp;amp;outname..rtf"
    image_dpi = 300;
   %end;
 
    /* Close ODS destination */
    %if %upcase(&amp;amp;output_type) = PDF %then %do;
        ods pdf close;
    %end;
    %else %if %upcase(&amp;amp;output_type) = RTF %then %do;
        ods rtf close;
    %end;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run this code I get this output&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1705695036256.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92796i671D447E82534269/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1705695036256.png" alt="smackerz1988_0-1705695036256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I want the titles and footnotes outside of the image similar to the rundate on the top right. Where is it going wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 21:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912270#M359645</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-01-19T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output issue with macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912273#M359647</link>
      <description>&lt;P&gt;On your ODS PDF and ODS RTF statements, you can add the options nogtitle and nogfootnote.&amp;nbsp; That will tell SGPLOT to add the titles outside of the graph image. It basically makes them titles for the page, instead of a title within the graph area. As an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="Q:\junk\foo.pdf" nogtitle ;
title "hello" ;
proc sgplot data=sashelp.class ;
  scatter x=height y=weight ;
run ;
title;
ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As a side note, when posting a question, it's helpful to post a small example of your problem.&amp;nbsp; In this case, since your question is not really about macros, it would be clearer to show a little example focused on the positions of titles and footnotes.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 20:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912273#M359647</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-01-19T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output issue with macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912280#M359652</link>
      <description>&lt;P&gt;Perfect thanks very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;&amp;nbsp;nogfootnote nogtitle worked great!. Yes, I will be more specific about the exact root of my issue next time. Appreciate your time!.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 21:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-positioning-in-PROC-SGPLOT/m-p/912280#M359652</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-01-19T21:01:32Z</dc:date>
    </item>
  </channel>
</rss>

