<?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: No print part of report in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/No-print-part-of-report/m-p/854531#M37654</link>
    <description>&lt;P&gt;Move the ods pdf file=".." -statement right after the macro is called.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 11:11:06 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2023-01-19T11:11:06Z</dc:date>
    <item>
      <title>No print part of report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-print-part-of-report/m-p/854513#M37651</link>
      <description>&lt;P&gt;Ggood morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new sas user.&lt;/P&gt;&lt;P&gt;I have a problem to generate a report. In my script I use a proc freq, but before I must perform a macro that someone gave me. The problem is that this macro&amp;nbsp;generate a report that I don't want in my final results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods pdf file = "path/file.pdf";

%macro_give_me;

proc freq data =data_set_created_from_macro;

run;

ods pdf close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried solve adding &lt;EM&gt;ods results&lt;/EM&gt; options in this way:&lt;/P&gt;&lt;PRE&gt;ods pdf file = "path/file.pdf";
ods noresults;
%macro_give_me;
ods results on;
proc freq data =data_set_created_from_macro;

run;

ods pdf close;&lt;/PRE&gt;&lt;P&gt;The program continues to print the result of Macro as well.&lt;/P&gt;&lt;P&gt;I could always go into the macro to enter noprint, but I'd like to avoid that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 09:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-print-part-of-report/m-p/854513#M37651</guid>
      <dc:creator>Ocram_87</dc:creator>
      <dc:date>2023-01-19T09:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: No print part of report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-print-part-of-report/m-p/854531#M37654</link>
      <description>&lt;P&gt;Move the ods pdf file=".." -statement right after the macro is called.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-print-part-of-report/m-p/854531#M37654</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-01-19T11:11:06Z</dc:date>
    </item>
  </channel>
</rss>

