<?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: Noprint sgplot within ods rtf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963401#M375336</link>
    <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt;
ods listing gpath="&amp;amp;loc." style=htmlblue image_dpi=300;
ods graphics / width=3in height=3in reset=index noborder imagename='data' outputfmt=png;
proc sgplot data = x;
run;
title;&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Apr 2025 11:46:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-04-04T11:46:41Z</dc:date>
    <item>
      <title>Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963331#M375325</link>
      <description>&lt;P&gt;I have an proc sgplot within my ods rtf code which is later used within proc report. I don't want the chart to print into the ods at this stage. If I ods exclude all; it doesn't save the chart. If I do ods close then ods rtf file='same location' it only saves data from the second ods rtf file=;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods exclude all;&lt;BR /&gt;ods listing gpath="&amp;amp;loc." style=htmlblue image_dpi=300;&lt;BR /&gt;ods graphics / width=3in height=3in reset=index noborder imagename='data' outputfmt=png;&lt;BR /&gt;proc sgplot data = x;&lt;BR /&gt;run;&lt;BR /&gt;title;&lt;BR /&gt;ods exclude none;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963331#M375325</guid>
      <dc:creator>paul8</dc:creator>
      <dc:date>2025-04-03T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963337#M375327</link>
      <description>&lt;P&gt;Your code does not show any ODS RTF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find the description of the problem very difficult to understand. Please explain in more detail.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963337#M375327</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-03T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963347#M375329</link>
      <description>&lt;P&gt;I have a massive lot of code within ods rtf. This is just a section. I don't want image to print when running proc sqplot step. Ods exclude doesn't work. Multiple ods close didn't work as not all the data went to the rtf file.&lt;/P&gt;&lt;P&gt;Ods rtf file=... ;&lt;/P&gt;&lt;P&gt;/*loads of code*/&lt;/P&gt;&lt;P&gt;/*Creating an chart and saving it*/&lt;/P&gt;&lt;P&gt;/*issue: I don't want it to print image to ods rtf. ods exclude all; stops it printing to ods but stops image saving*/&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods listing gpath="&amp;amp;loc." style=htmlblue image_dpi=300;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ods graphics / width=3in height=3in reset=index noborder imagename='data' outputfmt=png;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc sgplot data = x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*more code*/&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*image is then used in proc report. This is why I don't want it to print above*/&lt;/P&gt;&lt;P&gt;proc report data=x ;&lt;BR /&gt;column x column;&lt;BR /&gt;define x/display ''&lt;BR /&gt;style(column)={ preimage="&amp;amp;path\chart.png" bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white}&lt;BR /&gt;style(header)={ cellwidth=20% bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white};&lt;BR /&gt;/*more code*/&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 17:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963347#M375329</guid>
      <dc:creator>paul8</dc:creator>
      <dc:date>2025-04-03T17:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963351#M375330</link>
      <description>&lt;P&gt;Did you try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf exclude all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;BR /&gt;I think that might work.&amp;nbsp; Sounds like you want SGPLOT to write the graph to the listing destination, you just don't want to write it to the RTF destination.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 17:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963351#M375330</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-04-03T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963352#M375331</link>
      <description>Ods exclude all; stops the image from saving</description>
      <pubDate>Thu, 03 Apr 2025 17:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963352#M375331</guid>
      <dc:creator>paul8</dc:creator>
      <dc:date>2025-04-03T17:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963353#M375332</link>
      <description>&lt;P&gt;But did you try :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods RTF exclude all ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should exclude everything from the RTF file, but still send the graph to the listing destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, if I run below, SGPLOT writes the graph to a .png file because the listing destination is open, but does not write the graph to the RTF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing ;
ods rtf file="Q:\junk\foo.rtf" ;

ods rtf exclude all ;

proc sgplot data=sashelp.class ;
  scatter x=height y=weight ;
run ;

ods rtf exclude none ;

proc print data=sashelp.class ;
run ;

ods rtf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 18:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963353#M375332</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-04-03T18:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963401#M375336</link>
      <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/FONT&gt;
ods listing gpath="&amp;amp;loc." style=htmlblue image_dpi=300;
ods graphics / width=3in height=3in reset=index noborder imagename='data' outputfmt=png;
proc sgplot data = x;
run;
title;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Apr 2025 11:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963401#M375336</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-04T11:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint sgplot within ods rtf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963464#M375342</link>
      <description>&lt;P&gt;Thank you all for the replies.&lt;/P&gt;&lt;P&gt;Ods rtf exclude all; has done the trick for me&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 17:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-sgplot-within-ods-rtf/m-p/963464#M375342</guid>
      <dc:creator>paul8</dc:creator>
      <dc:date>2025-04-04T17:18:05Z</dc:date>
    </item>
  </channel>
</rss>

