<?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: Need help with a simple macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132127#M26938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Astounding.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I made a mistake at one place, missed a parenthesis &lt;/SPAN&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;%fmt(inlib1=%str(c:\temp1\p_v1), inlib2=%str(c:\temp1\p_v2);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 03:30:26 GMT</pubDate>
    <dc:creator>sandyming</dc:creator>
    <dc:date>2013-05-08T03:30:26Z</dc:date>
    <item>
      <title>Need help with a simple macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132125#M26936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have many inlib1, inlib2 libraries. I would like to concatenate all the directory to one macro variable NAME. &lt;/P&gt;&lt;P&gt;%put &amp;amp;name; looks fine, but log has the following error message. Anyone has an idea how to fix this? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro fmt(inlib1=, inlib2=);&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let name=%str("&amp;amp;inlib2","&amp;amp;inlib1",&amp;amp;name);&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%fmt(inlib1=%str(c:\temp1\p_v1), inlib2=%str(c:\temp1\p_v2));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Msg:&lt;/P&gt;&lt;P&gt;Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 21:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132125#M26936</guid>
      <dc:creator>sandyming</dc:creator>
      <dc:date>2013-05-07T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a simple macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132126#M26937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the snippet of the code that you show, there is no need to apply quoting functions.&amp;nbsp; All of the %str usage could be removed.&amp;nbsp; There may be reasons you need it for other sections of your code, but you don't need it for the pieces you have shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's curious as to where you are getting the error message.&amp;nbsp; None of your code actually prints anything.&amp;nbsp; So there must be more to this than you are showing.&amp;nbsp; If you post more of what you are trying to accomplish, it may turn out that there are other methods that don't involve concatenating all the names, but that's another story.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 00:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132126#M26937</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-05-08T00:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a simple macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132127#M26938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Astounding.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I made a mistake at one place, missed a parenthesis &lt;/SPAN&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;%fmt(inlib1=%str(c:\temp1\p_v1), inlib2=%str(c:\temp1\p_v2);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 03:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-a-simple-macro/m-p/132127#M26938</guid>
      <dc:creator>sandyming</dc:creator>
      <dc:date>2013-05-08T03:30:26Z</dc:date>
    </item>
  </channel>
</rss>

