<?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: Getting error while assigning library in a macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391771#M94176</link>
    <description>&lt;P&gt;Omit the semicolons after the macro parameters. Those semicolons otherwise end up as part of the directory names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(s_no=
,libname1 = 
,libname2 = 
,libname3 = 
,libname4 = 
);
libname inputt "&amp;amp;libname1";
libname interim "&amp;amp;libname2";
libname output "&amp;amp;libname3";
libname dataa "&amp;amp;libname4";
%mend test;
%test(
s_no=1234
,libname1 = C:\Users\abc\Desktop\input
,libname2 = C:\Users\abc\Desktop\interim
,libname3 = C:\Users\abc\Desktop\output
,libname4 =C:\Users\abc\Desktop\test
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Aug 2017 10:44:39 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-08-30T10:44:39Z</dc:date>
    <item>
      <title>Getting error while assigning library in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391767#M94173</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(s_no=
,libname1 = 
,libname2 = 
,libname3 = 
,libname4 = 
);
libname inputt "&amp;amp;libname1";
libname interim "&amp;amp;libname2";
libname output "&amp;amp;libname3";
libname dataa "&amp;amp;libname4&amp;nbsp;";
%mend test;
%test(
s_no=1234;
,libname1 = C:\Users\abc\Desktop\input;&amp;nbsp;
,libname2 = C:\Users\abc\Desktop\interim;
,libname3 = C:\Users\abc\Desktop\output;
,libname4 =C:\Users\abc\Desktop\test;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am getting&amp;nbsp;&lt;BR /&gt;Note: Library doesn't exist error while running this code. Please let me know what am I doing wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391767#M94173</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2017-08-30T10:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while assigning library in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391770#M94175</link>
      <description>&lt;P&gt;Drop the semicolons in your&amp;nbsp;arguments like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(s_no=
,libname1 = 
,libname2 = 
,libname3 = 
,libname4 = 
);
libname inputt "&amp;amp;libname1";
libname interim "&amp;amp;libname2";
libname output "&amp;amp;libname3";
libname dataa "&amp;amp;libname4 ";
%mend test;
%test(
 s_no = 1234
,libname1 = C:\Users\abc\Desktop\input 
,libname2 = C:\Users\abc\Desktop\interim
,libname3 = C:\Users\abc\Desktop\output
,libname4 = C:\Users\abc\Desktop\test
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391770#M94175</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-30T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while assigning library in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391771#M94176</link>
      <description>&lt;P&gt;Omit the semicolons after the macro parameters. Those semicolons otherwise end up as part of the directory names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(s_no=
,libname1 = 
,libname2 = 
,libname3 = 
,libname4 = 
);
libname inputt "&amp;amp;libname1";
libname interim "&amp;amp;libname2";
libname output "&amp;amp;libname3";
libname dataa "&amp;amp;libname4";
%mend test;
%test(
s_no=1234
,libname1 = C:\Users\abc\Desktop\input
,libname2 = C:\Users\abc\Desktop\interim
,libname3 = C:\Users\abc\Desktop\output
,libname4 =C:\Users\abc\Desktop\test
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-error-while-assigning-library-in-a-macro/m-p/391771#M94176</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-30T10:44:39Z</dc:date>
    </item>
  </channel>
</rss>

