<?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: Macro Variable-can't be raised to a power!!! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88453#M289456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza.&lt;/P&gt;&lt;P&gt;Appreciate your skills.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 18:03:29 GMT</pubDate>
    <dc:creator>rnmishra</dc:creator>
    <dc:date>2012-12-03T18:03:29Z</dc:date>
    <item>
      <title>Macro Variable-can't be raised to a power!!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88450#M289453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created two macro variable (B0 and B3)this way...&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if variable="Intercept" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call SYMPUTX("B0", estimate);&lt;/P&gt;&lt;P&gt;if variable="logX3" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call SYMPUTX("B3", estimate);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* After this I have created a data set aa&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;data aa; m=&amp;amp;B0;n=&amp;amp;B1;run;&lt;/P&gt;&lt;P&gt;Found that both m and n are numeric-I have done this to check the variable types*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I am interested to use these variables as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC NLIN Data=Prob20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parms gamma0 = 10**&amp;amp;B0&amp;nbsp;&amp;nbsp;&amp;nbsp; gamma3=&amp;amp;B3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODEL Y=gamma0*X3**(gamma3);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;But this what it returned&lt;/P&gt;&lt;P&gt;Here is the error message&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/2797_pastedImage_4.png" style="width: 790px; height: 197px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88450#M289453</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2012-12-03T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable-can't be raised to a power!!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88451#M289454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it can, wrap it in the %sysevalf function to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parms gamm0=%sysevalf(10**&amp;amp;B0) gamm3=&amp;amp;b3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL macro variables are character, so testing to see if they're numeric is pointless.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88451#M289454</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-03T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable-can't be raised to a power!!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88452#M289455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;P&gt;%let calc=%sysevalf(10**&amp;amp;b0.);&lt;/P&gt;&lt;P&gt;PROC NLIN Data=Prob20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parms gamma0 = &amp;amp;calc.&amp;nbsp;&amp;nbsp;&amp;nbsp; gamma3=&amp;amp;B3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODEL Y=gamma0*X3**(gamma3);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this the return is without error for me except the table which is not existing.&lt;/P&gt;&lt;P&gt;the macro variable calc contain the exact TEXT that will be substituted in your parms instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS Macro variable contains always text&lt;/P&gt;&lt;P&gt;and as it seems that&amp;nbsp; exponient is not allowed&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;74&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Parms gamma0 =11**1&lt;/TD&gt;&lt;TD&gt;gamma3=&amp;amp;B3;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88452#M289455</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2012-12-03T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable-can't be raised to a power!!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88453#M289456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza.&lt;/P&gt;&lt;P&gt;Appreciate your skills.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 18:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-can-t-be-raised-to-a-power/m-p/88453#M289456</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2012-12-03T18:03:29Z</dc:date>
    </item>
  </channel>
</rss>

