<?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: I cant able to resolve macro variables together in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549470#M152471</link>
    <description>&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 04:01:28 GMT</pubDate>
    <dc:creator>teja2710</dc:creator>
    <dc:date>2019-04-09T04:01:28Z</dc:date>
    <item>
      <title>I cant able to resolve macro variables together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549466#M152468</link>
      <description>&lt;P&gt;Can anyone please help me out with below code:&lt;/P&gt;&lt;P&gt;libname lib1 'E:\SAS Practice Starting';&lt;BR /&gt;Data lib1.hospital;&lt;BR /&gt;infile datalines dlm='~' dsd;&lt;BR /&gt;input patient:$10. hospitalname:$10. location:$8. amount;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;p001~lotus~hyd~3000&lt;BR /&gt;p002~lotus~hyd~5000&lt;BR /&gt;p003~rainbow~bng~2000&lt;BR /&gt;p004~rainbow~hyd~5000&lt;BR /&gt;p005~apolo~gujarat~1500&lt;BR /&gt;p006~apolo~gujarat~3000&lt;BR /&gt;p007~yasoda~mumbai~2000&lt;BR /&gt;p008~yasoda~mumbai~800&lt;BR /&gt;p009~global~hyd~5000&lt;BR /&gt;p0010~global~hyd~800&lt;BR /&gt;p002~lotus~hyd~5000&lt;BR /&gt;p003~rainbow~bng~2000&lt;BR /&gt;p005~apolo~gujarat~1500&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but my actual problem starts in below program i cant able to use like this '&amp;amp;lib.&amp;amp;table' but i can able to use like this 'lib1.&amp;amp;table'. But i want to pass both libraryname and tablename and i want to resolve together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro pp(lib,table,hospitalname);&lt;BR /&gt;PROC SQL;&lt;BR /&gt;select sum(amount) as Amount,&amp;amp;hospitalname&lt;BR /&gt;from &amp;amp;lib.&amp;amp;table&lt;BR /&gt;/*where hospitalname='lotus'*/&lt;BR /&gt;group by &amp;amp;hospitalname;&lt;BR /&gt;QUIT;&lt;BR /&gt;%mend;&lt;BR /&gt;%pp(lib1,hospital,hospitalname);&lt;BR /&gt;%pp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 03:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549466#M152468</guid>
      <dc:creator>teja2710</dc:creator>
      <dc:date>2019-04-09T03:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: I cant able to resolve macro variables together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549467#M152469</link>
      <description>&lt;P&gt;quik look tells me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from&lt;STRONG&gt; &amp;amp;lib.&amp;amp;table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;should be&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from &lt;STRONG&gt;&amp;amp;lib..&amp;amp;table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;with two .. in between&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 03:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549467#M152469</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-09T03:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: I cant able to resolve macro variables together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549470#M152471</link>
      <description>&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 04:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-cant-able-to-resolve-macro-variables-together/m-p/549470#M152471</guid>
      <dc:creator>teja2710</dc:creator>
      <dc:date>2019-04-09T04:01:28Z</dc:date>
    </item>
  </channel>
</rss>

