<?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: A beginner's question about the macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121161#M24832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Aug 2013 16:26:28 GMT</pubDate>
    <dc:creator>humenghu</dc:creator>
    <dc:date>2013-08-24T16:26:28Z</dc:date>
    <item>
      <title>A beginner's question about the macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121159#M24830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I wanted to write the string 'the input value is xxx' in the SAS log, using the following macro. My question is why the following does not work and how can I fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test(num=5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put 'the input value is &amp;amp;num';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* alternatively I can use an addtional variable to get the desired result*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a=&amp;amp;num;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put 'the input value is ' a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*but why the first attempt using&amp;nbsp; '&amp;amp;num ' does not work?*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%test()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 12:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121159#M24830</guid>
      <dc:creator>humenghu</dc:creator>
      <dc:date>2013-08-24T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: A beginner's question about the macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121160#M24831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro variables, if contained in quotes, won't resolve unless they are enclosed in double (i.e., ") quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 13:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121160#M24831</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-08-24T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: A beginner's question about the macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121161#M24832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 16:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-beginner-s-question-about-the-macro-variable/m-p/121161#M24832</guid>
      <dc:creator>humenghu</dc:creator>
      <dc:date>2013-08-24T16:26:28Z</dc:date>
    </item>
  </channel>
</rss>

