<?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 differences between call symput and %let in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125840#M260191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below it makes a difference whether a macro variable is defined using CALL SYMPUT (here: &amp;amp;ab.) or %LET (here: &amp;amp;ab2.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is that and are there any other noteworthy differences?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let a=1;&lt;/P&gt;&lt;P&gt;%Let b=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call Symput ('ab','%Eval(&amp;amp;a.+&amp;amp;b.)');&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let ab2=%Eval(&amp;amp;a.+&amp;amp;b.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab.;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab2.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let b=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab.;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab2.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 11:54:02 GMT</pubDate>
    <dc:creator>Georg_UPB</dc:creator>
    <dc:date>2013-10-28T11:54:02Z</dc:date>
    <item>
      <title>differences between call symput and %let</title>
      <link>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125840#M260191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below it makes a difference whether a macro variable is defined using CALL SYMPUT (here: &amp;amp;ab.) or %LET (here: &amp;amp;ab2.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is that and are there any other noteworthy differences?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let a=1;&lt;/P&gt;&lt;P&gt;%Let b=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call Symput ('ab','%Eval(&amp;amp;a.+&amp;amp;b.)');&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let ab2=%Eval(&amp;amp;a.+&amp;amp;b.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab.;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab2.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let b=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab.;&lt;/P&gt;&lt;P&gt;%Put &amp;amp;ab2.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125840#M260191</guid>
      <dc:creator>Georg_UPB</dc:creator>
      <dc:date>2013-10-28T11:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: differences between call symput and %let</title>
      <link>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125841#M260192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the below link, it has good information about the question you asked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/028-2010.pdf" title="http://support.sas.com/resources/papers/proceedings10/028-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/028-2010.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125841#M260192</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-10-28T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: differences between call symput and %let</title>
      <link>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125842#M260193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the VALUE.&amp;nbsp; They are not the same.&amp;nbsp; Add this to see the value.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &amp;amp;ab. &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%superq&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;ab&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &amp;amp;ab2. &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%superq&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;ab2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125842#M260193</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-10-28T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: differences between call symput and %let</title>
      <link>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125843#M260194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/differences-between-call-symput-and-let/m-p/125843#M260194</guid>
      <dc:creator>Georg_UPB</dc:creator>
      <dc:date>2013-10-28T12:09:55Z</dc:date>
    </item>
  </channel>
</rss>

