<?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 Variable is Stupid in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493587#M129861</link>
    <description>&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! What I want it to do is evaluate the MissionNum variable to see if it is equal to MISSION1 , MISSION2, MISSION3, etc. so I can set some before &amp;amp; after date ranges. I don't want it to look for the value of a MISSION1 variable in the data&amp;nbsp;table as there isn't one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Are you the Paige Miller who worked for Kodak?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 19:11:12 GMT</pubDate>
    <dc:creator>BTAinRVA</dc:creator>
    <dc:date>2018-09-07T19:11:12Z</dc:date>
    <item>
      <title>Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493580#M129856</link>
      <description>&lt;P&gt;Okay, maybe it's me. I have the code below and want the macro to determine date ranges based on the &lt;FONT face="Courier New" size="4"&gt;MissionNum variable. But it seems the &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt; &amp;amp;MissionNum = &lt;FONT color="#800080" face="Courier New" size="4"&gt;'MISSION1'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt;&amp;nbsp;line is causing SAS to create a variable named MISSION1 in the resulting table. Is there some other way I should be referencing the MissionNum variable?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; DMISID = 0091;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; MissionNum = MISSION1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; i = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;(substr(&amp;amp;MissionNum,8,1));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; test; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; twenthrappntfin;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;informat&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; DMISID= &amp;amp;DMISID;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; &amp;amp;MissionNum = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'MISSION1'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;DO&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2012&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'Before'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2013&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'After'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;END&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 18:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493580#M129856</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-07T18:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493582#M129858</link>
      <description>&lt;P&gt;Macros perform text substitution. The macro variable is replaced by the value of the macro variable when SAS runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if &amp;amp;MissionNum = 'MISSION1' then DO;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;when you execute the code, simple text substition happens and it turns into this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if MISSION1 = 'MISSION1' then DO;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is that what you want? What do you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Advice ... get the code to work properly without macro variables for one instance of your problem. Once that is working without macro variables, it shouldn't be too hard to get it to work with macro variables.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 18:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493582#M129858</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-07T18:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493586#M129860</link>
      <description>When developing macro code, it is always helpful to turn on  the options SYMBOLGEN MPRINT &amp;amp; MLOGIC</description>
      <pubDate>Fri, 07 Sep 2018 19:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493586#M129860</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2018-09-07T19:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493587#M129861</link>
      <description>&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! What I want it to do is evaluate the MissionNum variable to see if it is equal to MISSION1 , MISSION2, MISSION3, etc. so I can set some before &amp;amp; after date ranges. I don't want it to look for the value of a MISSION1 variable in the data&amp;nbsp;table as there isn't one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Are you the Paige Miller who worked for Kodak?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493587#M129861</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-07T19:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493591#M129862</link>
      <description>&lt;P&gt;Be careful with your terminology with variable vs macro variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16672"&gt;@BTAinRVA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What I want it to do is evaluate the MissionNum variable to see if it is equal to MISSION1 , MISSION2, MISSION3, etc. s&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you mean that you want to check if the value stored in the macro variable MissionNum is equal to MISSION1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, this will work, but note the comparison is case sensitive. If you want it to be case insensitive, wrap it in lowcase or upcase to force them to be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if "&amp;amp;missionNum." = "MISSION1" then&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493591#M129862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T19:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493592#M129863</link>
      <description>&lt;P&gt;AMSAS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! I have turned on those options but there are no error messages. I see that&lt;/P&gt;
&lt;P&gt;"Macro variable MISSIONNUM resolves to MISSION1". Apparently the program then looks for a variable in the data table named MISSION1 to see if it is equal to MISSION1. But as there is no variable named MISSION1 in the data table it creates one that simply has null values. What I want the program to do is evaluate if the variable MISSIONNUM&amp;nbsp;= "MISSION1".&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493592#M129863</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-07T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493595#M129865</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16672"&gt;@BTAinRVA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;AMSAS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! I have turned on those options but there are no error messages. I see that&lt;/P&gt;
&lt;P&gt;"Macro variable MISSIONNUM resolves to MISSION1". Apparently the program then looks for a variable in the data table named MISSION1 to see if it is equal to MISSION1. But as there is no variable named MISSION1 in the data table it creates one that simply has null values. What I want the program to do is evaluate if the variable MISSIONNUM&amp;nbsp;= "MISSION1".&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, That would just cause SAS to create a variable named MISSIONNUM instead of a variable named MISSION1.&lt;/P&gt;
&lt;P&gt;To compare the value of the MISSIONNUM macro variable to a constant then have your macro generate SAS syntax that also looks like a constant.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if "&amp;amp;missionnum" = 'MISSION1' then ....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also use the SYMGET() function to return the value of a macro variable at run time.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if symget('missionnum') = 'MISSION1' then ....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you want the macro to conditionally generate code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so then you need to use macro logic (%IF/%THEN/%DO/%END) instead of data step logic.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493595#M129865</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-07T19:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493597#M129866</link>
      <description>&lt;P&gt;Sorry, I should have been clearer. Those options don't show errors. What they do is, show how the macros are being resolved. Hence as, you noted, you see &amp;amp;MISSIONNUM resolved to MISSION1, which is a variable that doesn't exist.&lt;BR /&gt;&lt;BR /&gt;At Paige mentioned you are best to start without macros then slowly add them into the code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What I think you are trying to achieve is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if missionNum&amp;nbsp;= "MISSION1" then do ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* mission 1 logic goes here */&lt;/P&gt;
&lt;P&gt;end ;&lt;/P&gt;
&lt;P&gt;if missionNum&amp;nbsp;= "MISSION2" then do ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* mission 2 logic goes here */&lt;/P&gt;
&lt;P&gt;end ;&lt;/P&gt;
&lt;P&gt;if missionNum&amp;nbsp;= "MISSION3" then do ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* mission 3 logic goes here */&lt;/P&gt;
&lt;P&gt;end ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do that you are going to need to use a macro and macro variables&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Take a look at the documentation&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=n1nks63d6g1rk2n1owajhi374c6w.htm&amp;amp;locale=en" target="_self"&gt;Macro Variables&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=n0pfmkjlc3e719n1lks4go8ke61r.htm&amp;amp;locale=en" target="_self"&gt;Using Macros&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493597#M129866</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2018-09-07T19:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493601#M129867</link>
      <description>&lt;P&gt;Think about what SAS code you want your macro to generate.&lt;/P&gt;
&lt;P&gt;Do you see the differences between the conditions in these statements?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if DMISID= 0091 then ...
if DMISID= 91 then ...
if DMISID= "0091" then ...

if Mission1 = 'MISSION1' then ...
if "Mission1" = 'MISSION1' then ...
if "MISSION1" = 'MISSION1' then ...
if MISSIONNUM = "MISSION1" then ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which of these forms is the proper SAS code that you would like your macro to generate for SAS to execute?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493601#M129867</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-07T19:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493602#M129868</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16672"&gt;@BTAinRVA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;AMSAS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! I have turned on those options but there are no error messages. I see that&lt;/P&gt;
&lt;P&gt;"Macro variable MISSIONNUM resolves to MISSION1". Apparently the program then looks for a variable in the data table named MISSION1 to see if it is equal to MISSION1. But as there is no variable named MISSION1 in the data table it creates one that simply has null values. What I want the program to do is evaluate if the variable MISSIONNUM&amp;nbsp;= "MISSION1".&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; MissionNum = MISSION1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;Should be&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt; MissionNum = MISSIONNUM;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;if you want the generated code for &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt; &amp;amp;MissionNum = &lt;FONT color="#800080" face="Courier New" size="4"&gt;'MISSION1'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;DO&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;to resolve to&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;MISSIONNUM&amp;nbsp;= "MISSION1 then do;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;Any text that appears in the likely place of a variable name that does not generate an actual syntax error will have SAS place a variable with missing values (until possibly you assign them). &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493602#M129868</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-07T19:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493617#M129874</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems to be working! However for some reason it is not flagging the Before &amp;amp; After periods. There are no errors in the log so I don't know why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; DMISID = 0091;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;%Let&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; MissionNum = MISSION1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; test; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; twenthrappntfin;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;informat&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; Period &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;$6.&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; DMISID= &amp;amp;DMISID;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="4"&gt;'&amp;amp;MissionNum.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'MISSION1'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;DO&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp; if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2012&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'Before'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp; else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2013&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'After'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;END&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="4"&gt;'&amp;amp;MissionNum.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'MISSION2'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;DO&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; (fm= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt; and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2014&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) or (fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2015&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"Before"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; fm in (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;) and fy= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;2016&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"After"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;END&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 20:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493617#M129874</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-07T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493622#M129876</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replaces the single quotes with double quotes and it's working now. Thanks much for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And thanks to everyone who responded!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 20:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493622#M129876</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-07T20:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493661#M129898</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16672"&gt;@BTAinRVA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! What I want it to do is evaluate the MissionNum variable to see if it is equal to MISSION1 , MISSION2, MISSION3, etc. so I can set some before &amp;amp; after date ranges. I don't want it to look for the value of a MISSION1 variable in the data&amp;nbsp;table as there isn't one.&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It looks like you have your answer, but I point out that as I said above, you need to get your code working on a single instance WITHOUT MACRO variables, and then your process of turning this into code using macro variables will be much simpler. As far as the above explanation goes, I don't really know what you mean, but if you had showed actual working code for one instance without macros, it would be much clearer what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 21:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493661#M129898</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-07T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493677#M129908</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&amp;nbsp; And here are some papers to get you started:&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi28/056-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/056-28.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings13/120-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/120-2013.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 22:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493677#M129908</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-07T22:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable is Stupid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493708#M129924</link>
      <description>&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did have a working non-macro solution however I failed to save a copy of it before trying to transform it into a macro. I will definitely do that in the future. Thanks again for your guidance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 01:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-is-Stupid/m-p/493708#M129924</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2018-09-08T01:37:50Z</dc:date>
    </item>
  </channel>
</rss>

