<?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: SAS Studio %Macro Recognition in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634282#M8942</link>
    <description>&lt;P&gt;Please post the code you run, using the "running man" button (eigth in the row above the posting window).&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 21:23:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-03-23T21:23:52Z</dc:date>
    <item>
      <title>SAS Studio %Macro Recognition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634279#M8940</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Studio from&amp;nbsp;SAS University Edition through a VirtualBox and I'm trying to write a macro but it seems that the program doesn't recognize the statement. When I try to execute the code nothing happens, not even an error message. Does anyone know what can I do? Or if there is an option I need to activate to the program recognize the macro?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634279#M8940</guid>
      <dc:creator>martasofiasousa</dc:creator>
      <dc:date>2020-03-23T21:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio %Macro Recognition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634281#M8941</link>
      <description>&lt;P&gt;You need to submit the full macro definition at once and it works fine. Run the following and see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro example_print(dsn=);

proc print data=&amp;amp;dsn(obs=5);
run;

%mend;

%example_print(dsn=sashelp.class);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;UCLA introductory tutorial on macro variables and macros&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tutorial on converting a working program to a macro&lt;BR /&gt;&lt;BR /&gt;This method is pretty robust and helps prevent errors and makes it much easier to debug your code. Obviously biased, because I wrote it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Examples of common macro usage&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634281#M8941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-23T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio %Macro Recognition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634282#M8942</link>
      <description>&lt;P&gt;Please post the code you run, using the "running man" button (eigth in the row above the posting window).&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Macro-Recognition/m-p/634282#M8942</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-23T21:23:52Z</dc:date>
    </item>
  </channel>
</rss>

