<?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 assignment? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559430#M156202</link>
    <description>&lt;P&gt;It executes a SAS macro named&amp;nbsp;&lt;SPAN&gt;%mBuildLookupTab1 (so someone has previously created this macro, and possibly stored it in a location from which it will be called), with arguments NAME, DATASET, KEY and OBJ1 taking on the values shown.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 18:02:28 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-05-16T18:02:28Z</dc:date>
    <item>
      <title>Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559427#M156201</link>
      <description>&lt;P&gt;Can somebody explain what the following statement does?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mBuildLookupTab1(NAME=Region_Code_Conversion,DATASET=MyData.CCAC_LHIN,KEY=Region_ID,OBJ1=Region_Code);&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 17:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559427#M156201</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2019-05-16T17:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559430#M156202</link>
      <description>&lt;P&gt;It executes a SAS macro named&amp;nbsp;&lt;SPAN&gt;%mBuildLookupTab1 (so someone has previously created this macro, and possibly stored it in a location from which it will be called), with arguments NAME, DATASET, KEY and OBJ1 taking on the values shown.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 18:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559430#M156202</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-16T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559431#M156203</link>
      <description>&lt;P&gt;Not without seeing the macro code.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 18:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559431#M156203</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-16T18:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559432#M156204</link>
      <description>&lt;P&gt;Ok thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 18:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559432#M156204</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2019-05-16T18:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559449#M156210</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This code is invoking a SAS macro program definition named &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%mBuildLookupTab1&lt;/STRONG&gt;&lt;/FONT&gt;. Someplace, there should be code that has this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%macro mBuildLookupTab1();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;...... more code .....&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%mend;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "more code" is what gets executed when the macro program is invoked. Within the parentheses in the macro definition and the macro invocation are macro parameters: NAME, DATASET, KEY, and OBJ1. Inside the %MACRO definition, the parameters are being defined. In the "more code", the macro parameters should be visible as their macro variable equivalents: &amp;amp;NAME, &amp;amp;DATASET, &amp;amp;KEY, and &amp;amp;OBJ1. Without knowing more about what is in the "more code" in the macro definition program, it's nearly impossible to tell what is happening in the macro program when it is executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can turn on&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;options MPRINT SYMBOLGEN;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to see what the macro program is doing when you run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 18:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559449#M156210</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-16T18:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro assignment?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559454#M156212</link>
      <description>&lt;P&gt;Thanks a lot Cynthia!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 18:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-assignment/m-p/559454#M156212</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2019-05-16T18:59:28Z</dc:date>
    </item>
  </channel>
</rss>

