<?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 Macro '&amp;amp;&amp;amp;' could not be recognized? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682399#M206552</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;wrote a program&amp;nbsp;to assign a new column&amp;nbsp;'Class'&amp;nbsp;corresponding to different dataset names.&amp;nbsp;&amp;nbsp; I found out the class is shown in '&amp;amp;&amp;amp;Y&amp;amp;i.', and not the individual dataset name.&amp;nbsp; I have&amp;nbsp;Please let me know how to fix it.&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let Y1=ulung;
%let Y2=uheme;
%let Y3=ucancer;
%let Y4=utransplant;
%let Y5=ugm;

%macro assign;
	%do i = 1 %to 5;
    data &amp;amp;&amp;amp;Y&amp;amp;i.. (keep=Underlying_Cond class);
		set &amp;amp;&amp;amp;Y&amp;amp;i.;
			Underlying_Cond=strip(Upcase(Underlying_Conditions));
			Class='&amp;amp;&amp;amp;Y&amp;amp;i..';
		run;
	
	%end;
%mend;
%assign;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 19:56:23 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-09-08T19:56:23Z</dc:date>
    <item>
      <title>Macro '&amp;&amp;' could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682399#M206552</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;wrote a program&amp;nbsp;to assign a new column&amp;nbsp;'Class'&amp;nbsp;corresponding to different dataset names.&amp;nbsp;&amp;nbsp; I found out the class is shown in '&amp;amp;&amp;amp;Y&amp;amp;i.', and not the individual dataset name.&amp;nbsp; I have&amp;nbsp;Please let me know how to fix it.&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let Y1=ulung;
%let Y2=uheme;
%let Y3=ucancer;
%let Y4=utransplant;
%let Y5=ugm;

%macro assign;
	%do i = 1 %to 5;
    data &amp;amp;&amp;amp;Y&amp;amp;i.. (keep=Underlying_Cond class);
		set &amp;amp;&amp;amp;Y&amp;amp;i.;
			Underlying_Cond=strip(Upcase(Underlying_Conditions));
			Class='&amp;amp;&amp;amp;Y&amp;amp;i..';
		run;
	
	%end;
%mend;
%assign;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682399#M206552</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-09-08T19:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro '&amp;&amp;' could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682400#M206553</link>
      <description>&lt;P&gt;Text that contains macro references should be enclosed in double-quotes, not single-quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682400#M206553</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-08T19:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro '&amp;&amp;' could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682402#M206554</link>
      <description>&lt;P&gt;Perhaps you are missing double quotes?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Class="&amp;amp;Y&amp;amp;i..";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682402#M206554</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-09-08T19:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro '&amp;&amp;' could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682403#M206555</link>
      <description>&lt;P&gt;The reason the value is literally&lt;/P&gt;
&lt;PRE&gt;&amp;amp;&amp;amp;Y&amp;amp;i..&lt;/PRE&gt;
&lt;P&gt;is because that is that you asked it to do.&lt;/P&gt;
&lt;P&gt;If you want string values to be evaluated by the macro processor use double quote characters instead of single quote characters.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Class="&amp;amp;&amp;amp;Y&amp;amp;i..";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 20:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-amp-amp-could-not-be-recognized/m-p/682403#M206555</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-08T20:00:42Z</dc:date>
    </item>
  </channel>
</rss>

