<?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: SAS Macro Errors in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376976#M276672</link>
    <description>&lt;P&gt;Please show the macro code. You may be trying to put too much into a macro variable.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2017 13:04:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-18T13:04:43Z</dc:date>
    <item>
      <title>SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376969#M276669</link>
      <description>&lt;P&gt;Hi to all,&lt;BR /&gt;I get these errors msg when my macro was simulating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Overflow has occurred; evaluation is terminated.&lt;BR /&gt;ERROR: The macro MYMACRO will stop executing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fix it ? I welcome everything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376969#M276669</guid>
      <dc:creator>DoumbiaS</dc:creator>
      <dc:date>2017-07-18T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376971#M276670</link>
      <description>&lt;P&gt;Show us some code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple google seach for the error message gave me this, perhaps that can be of help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/42/348.html" target="_blank"&gt;http://support.sas.com/kb/42/348.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376971#M276670</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-07-18T12:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376974#M276671</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I had also seen it before. But on after, they're talking &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;about SAS OpRisk VaR Server 4.2 that i don't have.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376974#M276671</guid>
      <dc:creator>DoumbiaS</dc:creator>
      <dc:date>2017-07-18T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376976#M276672</link>
      <description>&lt;P&gt;Please show the macro code. You may be trying to put too much into a macro variable.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376976#M276672</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-18T13:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376984#M276673</link>
      <description>&lt;P&gt;It is a macro of about 150 lines. It executes well for 1 to 3 iterations.&lt;/P&gt;&lt;P&gt;But fails to execute when i make for more iterations than 3.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376984#M276673</guid>
      <dc:creator>DoumbiaS</dc:creator>
      <dc:date>2017-07-18T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376990#M276674</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/80356"&gt;@DoumbiaS&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It is a macro of about 150 lines.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So what? Without seeing the code, we can't help you.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/376990#M276674</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-18T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377042#M276675</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/80356"&gt;@DoumbiaS&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi to all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to fix it ? I welcome everything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Run the macro with MPRINT and SYMBOLGEN options. Add %PUT statements to the log.&lt;/P&gt;
&lt;P&gt;With the vague information here we cannot suggest anything else.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377042#M276675</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-18T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377217#M276676</link>
      <description>&lt;P&gt;After looking at the macro (got it in private message), I can only underline what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; already suggested. Add %put statements that put your val_mid_1 and val_mid_2 macro variables into the log, so you can see their development.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also see that you use numeric variables in call symput() without doing a proper conversion to character. This could cause problems creating texts in the macro variables that are then misinterpreted when the %if is resolved. Keep your code clean of any NOTEs about automatic type conversions, and make sure to use a put() function in call symput with a format that is suited to correctly display/convert your values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS I don't see anything in the macro that would reveal confidential data, so IMO you can post it safely here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PPS to illustrate what happens when you have a format overflow in call symput:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymac;
%let a=5e5;
%let b=4e10;
%if &amp;amp;a &amp;gt; &amp;amp;b %then %put yes; %else %put no;
%mend;

%mymac

data _null_;
a=5e5;
b=4e10;
if a &amp;gt; b then put "yes"; else put "no";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377217#M276676</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-19T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377267#M276677</link>
      <description>&lt;P&gt;After performing appropriate conversion using call symputx, no further overflow occurred. And needed iterations no longer fail.&lt;/P&gt;&lt;P&gt;Regards and Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Errors/m-p/377267#M276677</guid>
      <dc:creator>DoumbiaS</dc:creator>
      <dc:date>2017-07-19T12:15:59Z</dc:date>
    </item>
  </channel>
</rss>

