<?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: When I submit this code to create a Macro Def.  I only see the log there is no  report? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960983#M374699</link>
    <description>I had to restart my computer and then the report ran. thank you for that other option I will try!</description>
    <pubDate>Wed, 05 Mar 2025 20:01:49 GMT</pubDate>
    <dc:creator>hmlong25</dc:creator>
    <dc:date>2025-03-05T20:01:49Z</dc:date>
    <item>
      <title>When I submit this code to create a Macro Def.  I only see the log there is no  report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960971#M374693</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Reminder&lt;/STRONG&gt;: If you restarted your SAS session, you must recreate the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MC1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library so you can access your practice files. In SAS Studio, open and submit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;libname.sas&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;program in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EMC1V2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;folder. In Enterprise Guide, run the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Autoexec&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;process flow.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;m104p01.sas&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;practices&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;folder. Review and submit the program. Verify that it generates a report for Gold customers that contains 680 rows.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Convert the code to a macro named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Customers&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that accepts a positional parameter named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;.&lt;UL&gt;&lt;LI&gt;Submit the macro definition and review the log to verify that the macro compiled successfully.&lt;/LI&gt;&lt;LI&gt;Call the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Customers&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;macro with the parameter value&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Gold&lt;/EM&gt;. Verify that the title is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Gold Customers&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and that there are 680 rows in the report.&lt;/LI&gt;&lt;LI&gt;Call&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;%Customers&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;again with the parameter value&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;High Activity&lt;/EM&gt;. Verify that no rows were selected due to a case difference.&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;Solution:&lt;PRE&gt;%macro customers(type); 
title "&amp;amp;type Customers"; 
proc sql number;
select Name, Age_Group, Type 
    from mc1.customers 
    where Type contains "&amp;amp;type"; 
quit; 
title;
%mend customers;

%customers(Gold)
%customers(High Activity)&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960971#M374693</guid>
      <dc:creator>hmlong25</dc:creator>
      <dc:date>2025-03-05T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: When I submit this code to create a Macro Def.  I only see the log there is no  report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960974#M374695</link>
      <description>&lt;P&gt;What does the log say? Turn on the macro debugging options first by running this command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then run the macro again. That should help you debug it. If you still can't figure it out, please copy and paste the log as text into the window that appears when you click on the &amp;lt;/&amp;gt; icon. We need to see the entire log for the calls to the macro, not selected parts of the log.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1715196634946.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96351i414DE7EE2D1B5DE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1715196634946.png" alt="PaigeMiller_0-1715196634946.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960974#M374695</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-03-05T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: When I submit this code to create a Macro Def.  I only see the log there is no  report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960983#M374699</link>
      <description>I had to restart my computer and then the report ran. thank you for that other option I will try!</description>
      <pubDate>Wed, 05 Mar 2025 20:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-submit-this-code-to-create-a-Macro-Def-I-only-see-the-log/m-p/960983#M374699</guid>
      <dc:creator>hmlong25</dc:creator>
      <dc:date>2025-03-05T20:01:49Z</dc:date>
    </item>
  </channel>
</rss>

