<?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: Updating macros metadata in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365365#M86762</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Big macro (call it macro1) that executes my macro (macro with memory-execution problem, call it macro2) is in the different directory(call it directory1) from directory of macro2(call it directory2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when i add to the code of macro1 this statement:&lt;/P&gt;&lt;PRE&gt;%include macro2 "&lt;SPAN&gt;directory2&lt;/SPAN&gt;";&lt;/PRE&gt;&lt;P&gt;it gives me error&lt;/P&gt;&lt;PRE&gt;WARNING: Physical file does not exist, directory1\macro2
ERROR: Cannot open %INCLUDE file macro2&lt;/PRE&gt;&lt;P&gt;But when i copy macro2 to directory1 and add this code&lt;/P&gt;&lt;PRE&gt;%include macro2 "directory1";&lt;/PRE&gt;&lt;P&gt;Errors do not appear. &lt;STRONG&gt;And after i fully remove %include statement,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;the old version of the macro is called again&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I do not know why but it is.&lt;/P&gt;&lt;P&gt;What other versions can be here?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 13:44:20 GMT</pubDate>
    <dc:creator>Tomato42</dc:creator>
    <dc:date>2017-06-08T13:44:20Z</dc:date>
    <item>
      <title>Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365301#M86741</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(sorry for bad english)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;I have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SAS 9.3 (sas base)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In some ETL process i have set of sequential macros.&lt;/P&gt;&lt;P&gt;I changed&amp;nbsp;the code of one of them.&lt;/P&gt;&lt;P&gt;But in the sas log i see that old version (before my changes) of macro was executed. Macro was executed from memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: The macro MACRONAME is executing from memory.&lt;/PRE&gt;&lt;P&gt;What do I need to do to get the new version of the macro running?&lt;/P&gt;&lt;P&gt;Maybe object spawner can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tmato&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365301#M86741</guid>
      <dc:creator>Tomato42</dc:creator>
      <dc:date>2017-06-08T10:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365302#M86742</link>
      <description>&lt;P&gt;If your macros are initially read from an autocall directory, and you did not change the code there, then you'll run with the old version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you specifically %include the file with your changed macro code? This should lead to a re-compile of the macro.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365302#M86742</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-08T10:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365365#M86762</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Big macro (call it macro1) that executes my macro (macro with memory-execution problem, call it macro2) is in the different directory(call it directory1) from directory of macro2(call it directory2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when i add to the code of macro1 this statement:&lt;/P&gt;&lt;PRE&gt;%include macro2 "&lt;SPAN&gt;directory2&lt;/SPAN&gt;";&lt;/PRE&gt;&lt;P&gt;it gives me error&lt;/P&gt;&lt;PRE&gt;WARNING: Physical file does not exist, directory1\macro2
ERROR: Cannot open %INCLUDE file macro2&lt;/PRE&gt;&lt;P&gt;But when i copy macro2 to directory1 and add this code&lt;/P&gt;&lt;PRE&gt;%include macro2 "directory1";&lt;/PRE&gt;&lt;P&gt;Errors do not appear. &lt;STRONG&gt;And after i fully remove %include statement,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;the old version of the macro is called again&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I do not know why but it is.&lt;/P&gt;&lt;P&gt;What other versions can be here?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365365#M86762</guid>
      <dc:creator>Tomato42</dc:creator>
      <dc:date>2017-06-08T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365393#M86774</link>
      <description>&lt;P&gt;You might want to check your system setting for the MCOMPILE option. if it is set to NOMCOMPILE the system may not allow redefining a macro. You&amp;nbsp; can check with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc options option=mcompile;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you see NOMCOMPILE in the log result then use the options statement to set MCOMPILE.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365393#M86774</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-08T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365401#M86777</link>
      <description>&lt;P&gt;Hi, ballardw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This statement returns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; SAS (r) Proprietary Software Release 9.3  TS1M0

 MCOMPILE          Allow compilation for macros that are not autocall macros&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365401#M86777</guid>
      <dc:creator>Tomato42</dc:creator>
      <dc:date>2017-06-08T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365411#M86779</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/147867"&gt;@Tomato42&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, ballardw&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement returns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; SAS (r) Proprietary Software Release 9.3  TS1M0

 MCOMPILE          Allow compilation for macros that are not autocall macros&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So that isn't the issue. It was a moderately long shot but some shops or borrowed code might set that and would cause the symptom you are explaining.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365411#M86779</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-08T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365419#M86785</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/147867"&gt;@Tomato42&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...........&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And after i fully remove %include statement,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;the old version of the macro is called again&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I do not know why but it is.&lt;/P&gt;
&lt;P&gt;What other versions can be here?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That points very strongly to an autocall macro with the old version, or an old version that is included through one of the SAS autoexec features.&lt;/P&gt;
&lt;P&gt;How do you run your program?&lt;/P&gt;
&lt;P&gt;(Enterprise Guide, SAS Studio, batch)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365419#M86785</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-08T15:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365624#M86862</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;KurtBremser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I run my program from the batch-file&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 10:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365624#M86862</guid>
      <dc:creator>Tomato42</dc:creator>
      <dc:date>2017-06-09T10:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365625#M86863</link>
      <description>&lt;P&gt;Then you should look at the autoexec.sas file for your batch runs, and the value of the SASAUTOS system option (command line, config file).&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 10:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365625#M86863</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-09T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365627#M86864</link>
      <description>&lt;P&gt;In the value of this parameter there is a directory containing a problematic macro. However, for &lt;STRONG&gt;other&lt;/STRONG&gt; macros from the directories of this parameter, the changes remain and the modified version of the macros is executed.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 10:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365627#M86864</guid>
      <dc:creator>Tomato42</dc:creator>
      <dc:date>2017-06-09T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Updating macros metadata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365632#M86869</link>
      <description>&lt;P&gt;How do you include the "modified version" of all your macros in your codes? You either get a macro from the autocall, or you include them from a file, or you have them explicitly written in your code.&lt;/P&gt;
&lt;P&gt;So if you only get your macro through the autocall facility, you need to save the modified version THERE.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 11:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-macros-metadata/m-p/365632#M86869</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-09T11:42:10Z</dc:date>
    </item>
  </channel>
</rss>

