<?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: Macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19108#M3837</link>
    <description>There should not be any period after the name of the macro..&lt;BR /&gt;
&lt;BR /&gt;
like &amp;amp;UID not &amp;amp;UID.&lt;BR /&gt;
&lt;BR /&gt;
Where you need to use period after &amp;amp;CUT in the below example.&lt;BR /&gt;
&lt;BR /&gt;
 C:\ ...\&amp;amp;CUT..xls</description>
    <pubDate>Tue, 01 Mar 2011 19:04:12 GMT</pubDate>
    <dc:creator>SAS83</dc:creator>
    <dc:date>2011-03-01T19:04:12Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19104#M3833</link>
      <description>Hi Friends,&lt;BR /&gt;
&lt;BR /&gt;
I am getting an error while substituting values to this macro code. Please let me the error in this code.&lt;BR /&gt;
&lt;BR /&gt;
%macro cnt_inv(tbl=, vr=, st=, part= , ds=);&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
create table &amp;amp;tbl. as&lt;BR /&gt;
select count(*) as &amp;amp;vr. from &amp;amp;ds.&lt;BR /&gt;
where com in (&amp;amp;st.) and (&amp;amp;part.)&lt;BR /&gt;
group by userid ;&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend cnt_inv;&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance&lt;BR /&gt;
Raj</description>
      <pubDate>Tue, 01 Mar 2011 18:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19104#M3833</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-01T18:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19105#M3834</link>
      <description>t

Message was edited by: Ravi Mantripragada</description>
      <pubDate>Tue, 01 Mar 2011 18:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19105#M3834</guid>
      <dc:creator>SAS83</dc:creator>
      <dc:date>2011-03-01T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19106#M3835</link>
      <description>%macro cnt_inv(tbl=, vr=, st=, part= , ds=);&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
create table &amp;amp;tbl. as&lt;BR /&gt;
select count(*) as &amp;amp;vr. from &amp;amp;ds.&lt;BR /&gt;
where com in&lt;U&gt; ( (&amp;amp;st.) , (&amp;amp;part.) )&lt;/U&gt;group by userid ;&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend cnt_inv;</description>
      <pubDate>Tue, 01 Mar 2011 18:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19106#M3835</guid>
      <dc:creator>SAS83</dc:creator>
      <dc:date>2011-03-01T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19107#M3836</link>
      <description>OR this should do it.. I think this should work..&lt;BR /&gt;
&lt;BR /&gt;
%macro cnt_inv(tbl=, vr=, st=, part= , ds=);&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
create table &amp;amp;tbl. as&lt;BR /&gt;
select count(*) as &amp;amp;vr. from &amp;amp;ds.&lt;BR /&gt;
where com in (&amp;amp;st. , &amp;amp;part.)&lt;BR /&gt;
group by userid ;&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend cnt_inv;</description>
      <pubDate>Tue, 01 Mar 2011 19:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19107#M3836</guid>
      <dc:creator>SAS83</dc:creator>
      <dc:date>2011-03-01T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19108#M3837</link>
      <description>There should not be any period after the name of the macro..&lt;BR /&gt;
&lt;BR /&gt;
like &amp;amp;UID not &amp;amp;UID.&lt;BR /&gt;
&lt;BR /&gt;
Where you need to use period after &amp;amp;CUT in the below example.&lt;BR /&gt;
&lt;BR /&gt;
 C:\ ...\&amp;amp;CUT..xls</description>
      <pubDate>Tue, 01 Mar 2011 19:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19108#M3837</guid>
      <dc:creator>SAS83</dc:creator>
      <dc:date>2011-03-01T19:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19109#M3838</link>
      <description>Ravi ,Thanks for your information !!!</description>
      <pubDate>Tue, 01 Mar 2011 19:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro/m-p/19109#M3838</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-01T19:25:20Z</dc:date>
    </item>
  </channel>
</rss>

