<?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: sas mac in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242521#M309057</link>
    <description>&lt;P&gt;You are passing three parameter (one , two , and three), while only defining one parameter to be passed (dt).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either quote what you are trying to pass to the macro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%nn(%quote(one,two,three))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or, you can modify the macro to include a space as a delimiter in your scan function and pass the parameter separated by spaces.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro nn(dt);
%do i=1 %to 3;
%let x=%sysfunc(scan(&amp;amp;dt,&amp;amp;i,', '));
%put &amp;amp;x;
data t;
set &amp;amp;x;
run;
proc print;run;
%end;
%mend;
%nn(one two three)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jan 2016 03:47:06 GMT</pubDate>
    <dc:creator>JoshB</dc:creator>
    <dc:date>2016-01-09T03:47:06Z</dc:date>
    <item>
      <title>sas mac</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242519#M309056</link>
      <description>&lt;P&gt;&lt;BR /&gt;%macro nn(dt);&lt;BR /&gt;%do i=1 %to 3;&lt;BR /&gt;%let x=%sysfunc(scan("&amp;amp;dt",&amp;amp;i,',');&lt;BR /&gt;%put &amp;amp;x;&lt;BR /&gt;data t;&lt;BR /&gt;set &amp;amp;x;&lt;BR /&gt;run;&lt;BR /&gt;proc print;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%nn(one,two,three);&lt;/P&gt;&lt;P&gt;want to print all the three data sets,getting error that More positional parameters found than defined.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2016 03:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242519#M309056</guid>
      <dc:creator>pawandh</dc:creator>
      <dc:date>2016-01-09T03:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: sas mac</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242521#M309057</link>
      <description>&lt;P&gt;You are passing three parameter (one , two , and three), while only defining one parameter to be passed (dt).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either quote what you are trying to pass to the macro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%nn(%quote(one,two,three))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or, you can modify the macro to include a space as a delimiter in your scan function and pass the parameter separated by spaces.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro nn(dt);
%do i=1 %to 3;
%let x=%sysfunc(scan(&amp;amp;dt,&amp;amp;i,', '));
%put &amp;amp;x;
data t;
set &amp;amp;x;
run;
proc print;run;
%end;
%mend;
%nn(one two three)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2016 03:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242521#M309057</guid>
      <dc:creator>JoshB</dc:creator>
      <dc:date>2016-01-09T03:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: sas mac</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242525#M309058</link>
      <description>please try to call the macro as %nn(%nrstr(one,two,three))</description>
      <pubDate>Sat, 09 Jan 2016 06:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mac/m-p/242525#M309058</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-01-09T06:05:38Z</dc:date>
    </item>
  </channel>
</rss>

