<?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 do I see/find macro code stored in another file/location? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784377#M250303</link>
    <description>&lt;P&gt;See Bruno's answer here for part of that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/td-p/292642" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/td-p/292642&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 19:58:06 GMT</pubDate>
    <dc:creator>HB</dc:creator>
    <dc:date>2021-12-06T19:58:06Z</dc:date>
    <item>
      <title>How do I see/find macro code stored in another file/location?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784372#M250302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inherited some code that has some macros in it that I do not know exactly what they do. Also, I don't know where the code for these macros is stored. How do I find it? also, when I run the code with the mystery macros in it, I don't get details of the macro's execution in the log. Is there a way to enable it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 19:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784372#M250302</guid>
      <dc:creator>Datino</dc:creator>
      <dc:date>2021-12-06T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see/find macro code stored in another file/location?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784377#M250303</link>
      <description>&lt;P&gt;See Bruno's answer here for part of that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/td-p/292642" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/td-p/292642&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 19:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784377#M250303</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2021-12-06T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see/find macro code stored in another file/location?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784401#M250317</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be the creator of these macros uses the STORED COMPILED MACRO FACILITY.&lt;/P&gt;
&lt;P&gt;That saves the compiled macros to a catalog in a (permanent) library upon submitting the macro definition. You cannot open and read such a compiled macro catalog entry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options group=macro; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to see if mstored and sasmstore= are "activated".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get info on the macro execution in the LOG, put these options before the macro call.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint mlogic symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 21:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784401#M250317</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-12-06T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see/find macro code stored in another file/location?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784402#M250318</link>
      <description>&lt;P&gt;If you can actually run the macros and they are using SAS autocall then this macro might help.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/maclist.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/maclist.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So run your macro, let's pretend it is named MYMACRO, then run the MACLIST macro and then look at the dataset it generated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%mymacro;
%maclist;
proc print data=maclist;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 21:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/784402#M250318</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-06T21:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see/find macro code stored in another file/location?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/785379#M250642</link>
      <description>&lt;P&gt;This is a common challenge when debugging applications.&amp;nbsp; To avoid this kind of problem in the future, you might want to consider the SASjs approach - where all source code is managed locally, in a GIT repository, and jobs / services / tests are deployed as self contained units - ie, all dependent macros are 'compiled' into a single program, without any need for SASAUTOS or Catalogs or suchlike.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More info here:&amp;nbsp;&amp;nbsp;&lt;A href="https://sasjs.io/resources/#other-useful-websites" target="_blank"&gt;https://sasjs.io/resources/#other-useful-websites&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 12:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-see-find-macro-code-stored-in-another-file-location/m-p/785379#M250642</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-12-10T12:53:43Z</dc:date>
    </item>
  </channel>
</rss>

