<?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 MacroVariable with commas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MacroVariable-with-commas/m-p/372108#M88916</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macrovariable:&lt;/P&gt;&lt;PRE&gt;%LET A = 01,02,03;&lt;/PRE&gt;&lt;P&gt;I have a macro:&lt;/P&gt;&lt;PRE&gt;%macro B(A);&lt;/PRE&gt;&lt;P&gt;I want to call my macro&lt;/P&gt;&lt;PRE&gt;%B(&amp;amp;A.)&lt;/PRE&gt;&lt;P&gt;I undestood that because of the commas, I should write&lt;/P&gt;&lt;PRE&gt;%B(%superq(&amp;amp;A.))&lt;/PRE&gt;&lt;P&gt;It is working when I call the macro. But when the macro begins to be written I got this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Invalid symbolic variable name 01,02,03.&lt;/PRE&gt;&lt;P&gt;Can you tell me what I should do here?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 11:45:18 GMT</pubDate>
    <dc:creator>Planck</dc:creator>
    <dc:date>2017-06-30T11:45:18Z</dc:date>
    <item>
      <title>MacroVariable with commas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MacroVariable-with-commas/m-p/372108#M88916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macrovariable:&lt;/P&gt;&lt;PRE&gt;%LET A = 01,02,03;&lt;/PRE&gt;&lt;P&gt;I have a macro:&lt;/P&gt;&lt;PRE&gt;%macro B(A);&lt;/PRE&gt;&lt;P&gt;I want to call my macro&lt;/P&gt;&lt;PRE&gt;%B(&amp;amp;A.)&lt;/PRE&gt;&lt;P&gt;I undestood that because of the commas, I should write&lt;/P&gt;&lt;PRE&gt;%B(%superq(&amp;amp;A.))&lt;/PRE&gt;&lt;P&gt;It is working when I call the macro. But when the macro begins to be written I got this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Invalid symbolic variable name 01,02,03.&lt;/PRE&gt;&lt;P&gt;Can you tell me what I should do here?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 11:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MacroVariable-with-commas/m-p/372108#M88916</guid>
      <dc:creator>Planck</dc:creator>
      <dc:date>2017-06-30T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: MacroVariable with commas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MacroVariable-with-commas/m-p/372118#M88921</link>
      <description>&lt;P&gt;The %superq function does not expect the contents, but the name of a macro variable as argument:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%B(%superq(A))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Maxim 1: Read the documentation: &lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#p0ldeqll9sabzcn1jxnvid754b3t.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#p0ldeqll9sabzcn1jxnvid754b3t.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 12:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MacroVariable-with-commas/m-p/372118#M88921</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-30T12:07:30Z</dc:date>
    </item>
  </channel>
</rss>

