<?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: How to display a macro definition? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354560#M82954</link>
    <description>&lt;P&gt;Make a fileref that mimics the search path you have for your SASAUTOS setting and use that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename sa ("D:\MYSAS\sasmacro") ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then if you want to dump it to the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile sa('test666.sas');
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you want to complile (or re-compile) it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include sa('test666.sas') / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or use the INCLUDE editor command.&lt;/P&gt;
&lt;PRE&gt;include sa('test666.sas')&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Apr 2017 18:00:24 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-04-28T18:00:24Z</dc:date>
    <item>
      <title>How to display a macro definition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354557#M82952</link>
      <description>&lt;P&gt;&amp;nbsp;Hello ALL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A macro named&amp;nbsp;&lt;SPAN&gt;test666 stored at&amp;nbsp;"D:\MYSAS\sasmacro\test666.sas"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;content of &lt;SPAN&gt;test666.sas&lt;/SPAN&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %macro test666;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%put 111;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%put 222;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %mend test666;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The option in config file: &amp;nbsp;OPTIONS SASAUTOS=("D:\MYSAS\sasmacro");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here is&amp;nbsp;my question:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;After I open a new windows SAS session,&amp;nbsp;I want to display the definition of macro&amp;nbsp;test666.what I should&amp;nbsp;do?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354557#M82952</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-04-28T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a macro definition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354560#M82954</link>
      <description>&lt;P&gt;Make a fileref that mimics the search path you have for your SASAUTOS setting and use that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename sa ("D:\MYSAS\sasmacro") ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then if you want to dump it to the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile sa('test666.sas');
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you want to complile (or re-compile) it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include sa('test666.sas') / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or use the INCLUDE editor command.&lt;/P&gt;
&lt;PRE&gt;include sa('test666.sas')&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354560#M82954</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-28T18:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a macro definition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354565#M82956</link>
      <description>&lt;P&gt;Why wouldn't just go the D location and open the file?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 19:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-a-macro-definition/m-p/354565#M82956</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-28T19:03:13Z</dc:date>
    </item>
  </channel>
</rss>

