<?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: Macro code location in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889177#M351292</link>
    <description>&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I should be more accurate... the macro is executed on SCL frame ---- I guess. Is there a code available in order to help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks again&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 11:50:39 GMT</pubDate>
    <dc:creator>danweifis</dc:creator>
    <dc:date>2023-08-14T11:50:39Z</dc:date>
    <item>
      <title>Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889152#M351280</link>
      <description>&lt;P&gt;Hi, I have a macro that is compiled "somewhere" once SAS does AUTOEXEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the macro's name: "%UPDD" - but I don't know where is the code that compile it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried several options such as : MAUTOLOCDISPLAY, and others and it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a test, I created a&amp;nbsp; a macrotest.sas file located in C:/TMP with a macro called %macrotest. THen in another program editor, in the same session using all those options, still in the log its not displayed the location: C:/TMP/macrotest.sas which I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 08:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889152#M351280</guid>
      <dc:creator>danweifis</dc:creator>
      <dc:date>2023-08-14T08:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889154#M351281</link>
      <description>&lt;P&gt;In SAS EG the view sashelp.vextfl contains all paths that have been added to SASAUTOS. If &lt;FONT size="4"&gt;MAUTOLOCDISPLAY doesn't display the path to the file containing the definition of the macro is not in SASAUTOS. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Why can't you look at the files used during session start?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 09:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889154#M351281</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-08-14T09:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889155#M351282</link>
      <description>&lt;P&gt;Look at DICTIONARY.MACROS in PROC SQL.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 09:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889155#M351282</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-14T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889176#M351291</link>
      <description>&lt;P&gt;thank you for the answer, seems this table stores macro values... what I am looking for is where is located the macro code: path + filename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 11:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889176#M351291</guid>
      <dc:creator>danweifis</dc:creator>
      <dc:date>2023-08-14T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889177#M351292</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I should be more accurate... the macro is executed on SCL frame ---- I guess. Is there a code available in order to help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks again&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 11:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889177#M351292</guid>
      <dc:creator>danweifis</dc:creator>
      <dc:date>2023-08-14T11:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889179#M351293</link>
      <description>&lt;P&gt;In this thread &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; published a utility program that might help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/m-p/292713/highlight/true#M60818" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-Location-of-SAS-Macros/m-p/292713/highlight/true#M60818&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 12:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889179#M351293</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-08-14T12:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889200#M351296</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71379"&gt;@danweifis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I should be more accurate... the macro is executed on SCL frame ---- I guess. Is there a code available in order to help me on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THanks again&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That likely means that the code is in a catalog that the SCL is using, possibly as an SLIST entry (IIRC). Maybe.&lt;/P&gt;
&lt;P&gt;So try to determine the catalogs used.&lt;/P&gt;
&lt;P&gt;Then search the contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or talk to the SAS admin about where that SCL source is. May be easier.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889200#M351296</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-14T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889204#M351297</link>
      <description>&lt;P&gt;Then most likely it is NOT an autocall macro.&amp;nbsp; When the macro is not compiled via autocall then it does not display an locaiton with that option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;3258  %macro updd;
3259  %put Note: Running &amp;amp;sysmacroname.;
3260  %mend updd;
3261  option mautolocdisplay;
3262  %updd;
Note: Running UPDD
3263  %put %tslit(xxx);
MAUTOLOCDISPLAY(TSLIT):  This macro was compiled from the autocall file C:\Program
                         Files\SASHome\SASFoundation\9.4\core\sasmacro\tslit.sas
'xxx'
&lt;/PRE&gt;
&lt;P&gt;So you need to look at your AUTOEXEC setting and the code it is running.&lt;/P&gt;
&lt;P&gt;If you are using some tool like Enterprise Guide or SAS/Studio to send your code to SAS then you need to also look at what macros those tools have defined in your environment.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-code-location/m-p/889204#M351297</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-14T15:39:55Z</dc:date>
    </item>
  </channel>
</rss>

