<?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: Difference between &amp;amp;A and &amp;amp;A. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457090#M115865</link>
    <description>&lt;P&gt;OK, I think you need a few examples to clarify then.&amp;nbsp; Try running this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let a=1;&lt;/P&gt;
&lt;P&gt;%let ab=2;&lt;/P&gt;
&lt;P&gt;%let abc=3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put abc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;abc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;abc.;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;a.bc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;ab.c;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 21:44:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-04-24T21:44:10Z</dc:date>
    <item>
      <title>Difference between &amp;A and &amp;A.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457069#M115861</link>
      <description>&lt;P&gt;I'm looking at a piece of code given below, this is just a small part of a really big project. But I'm unable to understand a concept here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select max(count) into:A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From ABC;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF &amp;amp;A. &amp;lt; 1 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[some code]&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, A is a macro variable as provided in the proc sql statements, then instead of referencing it as &lt;STRONG&gt;&amp;amp;A&lt;/STRONG&gt; in the data step, why is this being referred to as &lt;STRONG&gt;&amp;amp;A.&lt;/STRONG&gt;. Why is there a period added while referencing it?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457069#M115861</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-04-24T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between &amp;A and &amp;A.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457072#M115862</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Why is there a period added while referencing it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Test the same code without the period as suffix&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457072#M115862</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-24T21:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between &amp;A and &amp;A.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457081#M115863</link>
      <description>&lt;P&gt;The period is optional when referring to a macro variable.&amp;nbsp; It doesn't matter if&amp;nbsp; you use it here or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It comes in handy when the name of the macro variable is ambiguous.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp;ABC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the macro variable &amp;amp;A followed by the letters "BC"&amp;nbsp; or is&amp;nbsp;it the macro variable &amp;amp;ABC?&amp;nbsp; For the macro variable &amp;amp;A followed by the letters "BC" you would clarify that by using:&lt;/P&gt;
&lt;P&gt;&amp;amp;A.BC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457081#M115863</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-24T21:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between &amp;A and &amp;A.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457088#M115864</link>
      <description>&lt;P&gt;ABC is a table and A is just a variable that&amp;nbsp;&amp;nbsp;is obtaining some value from that table.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457088#M115864</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-04-24T21:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between &amp;A and &amp;A.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457090#M115865</link>
      <description>&lt;P&gt;OK, I think you need a few examples to clarify then.&amp;nbsp; Try running this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let a=1;&lt;/P&gt;
&lt;P&gt;%let ab=2;&lt;/P&gt;
&lt;P&gt;%let abc=3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put abc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;abc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;abc.;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;a.bc;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;ab.c;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-amp-A-and-amp-A/m-p/457090#M115865</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-24T21:44:10Z</dc:date>
    </item>
  </channel>
</rss>

