<?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: %let is not working in data step block in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720621#M223232</link>
    <description>&lt;P&gt;%let is a declarative statement and is been executed outside the data step.&lt;/P&gt;
&lt;P&gt;Your code is equal to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let name=bbb ;
data _null_ ;
call symput('name','aaa') ;
run;
%put &amp;amp;name ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 20 Feb 2021 07:28:07 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2021-02-20T07:28:07Z</dc:date>
    <item>
      <title>%let is not working in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720620#M223231</link>
      <description>&lt;P&gt;data _null_ ;&lt;BR /&gt;call symput('name','aaa') ;&lt;BR /&gt;%let name=bbb ;&lt;BR /&gt;run;&lt;BR /&gt;%put &amp;amp;name ;&lt;/P&gt;
&lt;P&gt;If I execute above program is showing (aaa) value . why %let is not working and what is the logic behind that.&lt;/P&gt;
&lt;P&gt;Kindly explain?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 07:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720620#M223231</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2021-02-20T07:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: %let is not working in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720621#M223232</link>
      <description>&lt;P&gt;%let is a declarative statement and is been executed outside the data step.&lt;/P&gt;
&lt;P&gt;Your code is equal to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let name=bbb ;
data _null_ ;
call symput('name','aaa') ;
run;
%put &amp;amp;name ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Feb 2021 07:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720621#M223232</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-20T07:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: %let is not working in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720628#M223235</link>
      <description>&lt;P&gt;The macro processor is a&amp;nbsp;&lt;STRONG&gt;PRE&lt;/STRONG&gt;processor, doing its work when the code is read and &lt;EM&gt;prepared&lt;/EM&gt; for compilation/execution.&lt;/P&gt;
&lt;P&gt;To overwrite the value set by the data step, you have to move the %LET after the step boundary (after the RUN statement).&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 08:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-is-not-working-in-data-step-block/m-p/720628#M223235</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-20T08:49:24Z</dc:date>
    </item>
  </channel>
</rss>

