<?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 Using arithmetic in a macro variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704470#M26132</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to create a macro variable like below, when I run %PUT &amp;amp;=Variable, it simply returns 15+85. Is there a way to evaluate the equation and return 100 instead?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%LET Variable = 15+85;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Dec 2020 17:43:27 GMT</pubDate>
    <dc:creator>kaitlineolson7</dc:creator>
    <dc:date>2020-12-08T17:43:27Z</dc:date>
    <item>
      <title>Using arithmetic in a macro variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704470#M26132</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to create a macro variable like below, when I run %PUT &amp;amp;=Variable, it simply returns 15+85. Is there a way to evaluate the equation and return 100 instead?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%LET Variable = 15+85;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Dec 2020 17:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704470#M26132</guid>
      <dc:creator>kaitlineolson7</dc:creator>
      <dc:date>2020-12-08T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using arithmetic in a macro variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704471#M26133</link>
      <description>&lt;P&gt;Integer arithmetic: %eval, floating point %sysevalf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let variable = 15 + 85;&lt;/P&gt;
&lt;P&gt;%put %eval(&amp;amp;variable.);&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 17:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704471#M26133</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-08T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using arithmetic in a macro variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704478#M26135</link>
      <description>&lt;P&gt;Please see the answers in this thread:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable/td-p/704449" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable/td-p/704449&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 17:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-arithmetic-in-a-macro-variable/m-p/704478#M26135</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-08T17:57:53Z</dc:date>
    </item>
  </channel>
</rss>

