<?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 error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77424#M16727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%EVAL() is for evaluating integer arithmetic (or boolean logic).&amp;nbsp; Have quotes inside of %EVAL() is going to cause errors. &lt;/P&gt;&lt;P&gt;Try just submitting the code:&amp;nbsp; %put %eval("1") ;&amp;nbsp; And read the generated error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Perhaps you are confusing %eval() with the normal macro variable processing of replacing &amp;amp;VARNAME with the value of the macro variable VARNAME?&amp;nbsp; If it helps I normally consider that as macro variable EXPANSION (rather than evaluation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most likely you want to replace &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if&amp;nbsp; (%eval("&amp;amp;j ") = "1" AND %eval("&amp;amp;i" ) ="1" )&amp;nbsp; %then &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if&amp;nbsp; ("&amp;amp;j" = "1" AND "&amp;amp;i" ="1" )&amp;nbsp; %then &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;%do;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 13:51:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-07-25T13:51:38Z</dc:date>
    <item>
      <title>Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77417#M16720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have using sas macro to check the current system time and do calculations based on it. However, I am getting an error. Can someone point out if I have incorrect data usage?&lt;/P&gt;&lt;P&gt;%global timeflag tc;&lt;BR /&gt;%macro _timecheck;&lt;BR /&gt;data _null_;&lt;BR /&gt;call symput ('tc',strip(minute(time())));&lt;BR /&gt;run;&lt;BR /&gt;%put "&amp;amp;tc is the system time" ;&lt;BR /&gt;%if 0&amp;lt;= &amp;amp;tc &amp;lt;= 29 %then&lt;BR /&gt; %do;&lt;BR /&gt; %let timeflag = A ;&lt;BR /&gt; %put "the flag is set to &amp;amp;timeflag";&lt;BR /&gt; %end;&lt;BR /&gt;%else %if 30&amp;lt;= &amp;amp;tc &amp;lt;= 59 %then %do;&lt;BR /&gt; %let timeflag = B;&lt;BR /&gt; %put "the flag is set to &amp;amp;timeflag";&lt;BR /&gt; %end;&lt;BR /&gt;%mend _timecheck;&lt;BR /&gt;%_timecheck&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CATS('PBG',LEFT(put(t2.&amp;amp;prcname.Plant,11.),2), SUBSTR(t2.&amp;amp;prcname.Line,1,1))) LABEL="&amp;amp;prcname. Unit" AS &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;prcname.Unit, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* _30mintime */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PUT(round(t2.&amp;amp;prcname.Time,hms(0,30,00)), DATETIME.)) LABEL="&amp;amp;prcname._30mintime" AS &amp;amp;prcname._30mintime, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* _1hrtime */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PUT(round(intnx('hour',t2.&amp;amp;prcname.Time,-1 )), DATETIME.) ) LABEL="&amp;amp;prcname._1hrtime" AS &amp;amp;prcname._1hrtime, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* _daytime */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (put(datepart(t2.&amp;amp;prcname.Time), MMDDYY10.)) LABEL="&amp;amp;prcname._daytime" AS &amp;amp;prcname._daytime, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* _CustomHrBin */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CASE &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN ( &amp;amp;timeflag = A) and ( 0&amp;lt;= (minute(t2.&amp;amp;prcname.Time)) &amp;lt;= 29 )&amp;nbsp; THEN &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT(round(t2.&amp;amp;prcname.Time,hms(1,0,00)), DATETIME.)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (&amp;nbsp; &amp;amp;timeflag = A) and ( 30&amp;lt;= (minute(t2.&amp;amp;prcname.Time)) &amp;lt;= 59 )&amp;nbsp; then PUT(intnx('hour'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,round(t2.&amp;amp;prcname.Time,hms(1,0,00)),-1), DATETIME.)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (&amp;nbsp; &amp;amp;timeflag = B) and ( 0&amp;lt;= (minute(t2.&amp;amp;prcname.Time)) &amp;lt;= 29 ) then PUT(intnx('minutes', &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; round(t2.&amp;amp;prcname.Time,hms(1,0,00)), -30),DATETIME.)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&amp;nbsp;&amp;nbsp; (&amp;nbsp; &amp;amp;timeflag = B)&amp;nbsp; and&amp;nbsp; ( 30&amp;lt;= (minute(t2.&amp;amp;prcname.Time)) &amp;lt;= 59 ) then PUT(intnx('minute'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,round(t2.&amp;amp;prcname.Time,hms(1,0,00)),-30),DATETIME.)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; AS _&amp;amp;prcname._CustomHrBin&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable PRCNAME resolves to FinalSim&lt;BR /&gt;"the currenct process being executed is FinalSim"&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable PRCNAME resolves to FinalSim&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable TIMEFLAG resolves to A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Function LEFT requires at most 1 argument(s). The extra one(s) will be ignored.&lt;BR /&gt;NOTE: A CASE expression has no ELSE clause. Cases not accounted for by the WHEN clauses will result in a missing value for the CASE &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression.&lt;BR /&gt;ERROR: The following columns were not found in the contributing tables: A, B.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;MPRINT(_BUILD_METRICS):&amp;nbsp;&amp;nbsp; QUIT;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case statement above worked before substituting the macro variable.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77417#M16720</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-12T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77418#M16721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what the error in your code is, but I believe the following code doesn't work in macro language:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if 0&amp;lt;= &amp;amp;tc &amp;lt;= 29 %then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if 0&amp;lt;= &amp;amp;tc&amp;nbsp; and &amp;amp;tc &amp;lt;= 29 %then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77418#M16721</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-12T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77419#M16722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't tell much for the entire program, but the error listed above from your log comes from the fact that&lt;/P&gt;&lt;P&gt;WHEN ( &amp;amp;timeflag = A)&lt;/P&gt;&lt;P&gt;when (&amp;nbsp; &amp;amp;timeflag = B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not quoted, that is, SQL attempts to resolve if&amp;nbsp; variable B = variable B and not if "B" = "B". So the first step to see if there are anymore errors would be to replace the when lines by the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN ( "&amp;amp;timeflag"="A")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you use double quotes as single quotes will prevent the macro variable &amp;amp;timeflag to resolve to A and thus will always lead to a binary value FALSE since the string '&amp;amp;timeflag' is not equal to the string 'A'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77419#M16722</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-07-12T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77420#M16723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The use of multiple comparison operators does NOT work the same in macro language as it does in normal SAS code.&amp;nbsp; Instead of evaluating (A &amp;lt; B &amp;lt; C) as the same as (A &amp;lt; B and B &amp;lt; C) it first converts (A &amp;lt; B) to 0 or 1 based on whether it is true or false and then compares the result to C.&amp;nbsp; Try these two :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put %eval( 0 &amp;lt; 4 &amp;lt; 1 ) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put %eval( 0 &amp;lt; 4 &amp;lt;= 1 ) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you are already calling a data step you can just eliminate using macro logic and use normal data step logic instead.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can also use SYMPUTX to eliminate the need to convert numbers to character strings or the need for a %GLOBAL statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro _timecheck;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tc = minute(time());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if 0 &amp;lt;= tc &amp;lt;= 29 then timeflag='A';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else timeflag='B';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('tc',tc,'G');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('timeflag',timeflag,'G');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend _timecheck;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%_timecheck ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put timeflag=&amp;amp;timeflag tc=&amp;amp;tc ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 23:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77420#M16723</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-12T23:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77421#M16724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I am not sure what that fragment of SQL code is trying to do, but this part of it makes me worried.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; ( &amp;amp;timeflag = A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the values of the macro variable TIMEFLAG is either A or B then this will result in one of two possible code fragments:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;( A = A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;( B = A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So you are comparing the values of two data set variables.&lt;/P&gt;&lt;P&gt;The first will always be true (at least in SAS code, in other flavors of SQL if A is null then this might be false).&lt;/P&gt;&lt;P&gt;The second could be true if the value of B happens to equal the value of A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is NOT what you wanted the perhaps you meant to code the test as:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; ( "&amp;amp;timeflag" = "A")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So that SAS is comparing two literal strings instead of referencing variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 23:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77421#M16724</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-12T23:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77422#M16725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks eveyone. I have a question related to sas nested macros. I have two processes that I need to run the outer macro for and two metrics that I need to run the inner macro loop for. Originally I had the macro logic like this. Is that correct?&lt;/P&gt;&lt;P&gt;Data MESTGT.include_processes;&lt;BR /&gt;length pname $20.;&lt;BR /&gt;input pname;&lt;BR /&gt;cards;&lt;BR /&gt;FinalSim&lt;BR /&gt;AcidEtch&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Data MESTGT.include_metrics;&lt;BR /&gt;length metricname $20.;&lt;BR /&gt;input metricname;&lt;BR /&gt;cards;&lt;BR /&gt;Total_eff&lt;BR /&gt;Voc &lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data _null_;&lt;BR /&gt;set MESTGT.include_processes;&lt;BR /&gt;call symput ('pcode'||strip(_n_),strip(pname));&lt;BR /&gt;call symput ('nproc', strip(_n_));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;BR /&gt;set MESTGT.include_metrics;&lt;BR /&gt;call symput ('metric'||strip(_n_),strip(metricname));&lt;BR /&gt;call symput ('nmetric', strip(_n_));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro _process_legs (pcode=);&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %macro _metrics&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %mend _metrics;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**Loop Through each individual metric for a single process leg**/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do j= 1 %to &amp;amp;nmetric; *loop through individual metric;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; %_metrics(metric=&amp;amp;&amp;amp;metric&amp;amp;j..)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%end; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%mend _process_legs;&lt;/P&gt;&lt;P&gt;/**Control Loop**/&lt;BR /&gt;%macro _loop_for_selected_processes;&lt;BR /&gt;%let i= ;&lt;BR /&gt;/****loops through individual leg/process***/&lt;BR /&gt;%do i = 1 %to &amp;amp;nproc; &lt;BR /&gt;%let j=;&lt;BR /&gt;%_process_legs(pcode=&amp;amp;&amp;amp;pcode&amp;amp;i..)&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;%mend _loop_for_selected_processes;&lt;BR /&gt;%_loop_for_selected_processes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 20:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77422#M16725</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-16T20:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77423#M16726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;I think I am still tripping up with getting the right syntax for checking macros. I have attached the code and log. I am trying to check if the macro variables i and j have values then create the ALLDATA dataset. For all other values of i and j, merge (not append) the data from &amp;amp;&amp;amp;pcode&amp;amp;i.._LINE_DELTA_&amp;amp;&amp;amp;metric&amp;amp;j.. into the ALLDATA dataset.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; %if&amp;nbsp; (%eval("&amp;amp;j ") = "1" AND %eval("&amp;amp;i" ) ="1" )&amp;nbsp; %then &lt;BR /&gt;&amp;nbsp; %do;&lt;BR /&gt;&amp;nbsp; DATA ALLDATA;&lt;BR /&gt;&amp;nbsp; set &amp;amp;&amp;amp;pcode&amp;amp;i.._LINE_DELTA_&amp;amp;&amp;amp;metric&amp;amp;j..;&lt;BR /&gt;&amp;nbsp; run;&lt;BR /&gt;&amp;nbsp; %end ;&lt;BR /&gt; %else %if ( %eval("&amp;amp;j" ) &amp;lt;&amp;gt; "1" OR&amp;nbsp; %eval("&amp;amp;j" ) &amp;lt;&amp;gt;"1" ) %then&lt;BR /&gt;&amp;nbsp; %do;&lt;BR /&gt;&amp;nbsp; PROC SQL;&lt;BR /&gt;&amp;nbsp; create table ALLDATA&lt;BR /&gt;&amp;nbsp; as (select * from &amp;amp;&amp;amp;pcode&amp;amp;i.._LINE_DELTA_&amp;amp;&amp;amp;metric&amp;amp;j.. t1&lt;BR /&gt;&amp;nbsp; right&amp;nbsp; join CUSTOMHRBIN_VALUES t2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; on (t1._&amp;amp;&amp;amp;pcode&amp;amp;i.._CustomHrBinA=t2._customhrbin &lt;BR /&gt;&amp;nbsp;&amp;nbsp; or t1._&amp;amp;&amp;amp;pcode&amp;amp;i.._CustomHrBinB=t2._customhrbin) &lt;BR /&gt;&amp;nbsp; union select * from WORK.ALLDATA&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp; quit;&lt;BR /&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable J resolves to 1&lt;BR /&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "1 " &lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable I resolves to 3&lt;BR /&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "3" &lt;BR /&gt;MLOGIC(_LOOP_FOR_SELECTED_PROCESSES._PROCESS_LEGS._METRICS):&amp;nbsp; %IF condition (%eval("&amp;amp;j ") = "1" AND %eval("&amp;amp;i" ) ="1" ) is FALSE&lt;BR /&gt;ERROR: The macro _METRICS will stop executing.&lt;BR /&gt;MLOGIC(_LOOP_FOR_SELECTED_PROCESSES._PROCESS_LEGS._METRICS):&amp;nbsp; Ending execution.&lt;BR /&gt;MLOGIC(_LOOP_FOR_SELECTED_PROCESSES._PROCESS_LEGS):&amp;nbsp; %DO loop index variable J is now 2; loop will iterate again.&lt;BR /&gt;60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The SAS System&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09:06 Thursday, July 25, 2013&lt;/P&gt;&lt;P&gt;MPRINT(_PROCESS_LEGS):&amp;nbsp;&amp;nbsp; *loop through individual metric;&lt;BR /&gt;MLOGIC(_LOOP_FOR_SELECTED_PROCESSES._PROCESS_LEGS._METRICS):&amp;nbsp; Beginning execution.&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable J resolves to 2&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable METRIC2 resolves to Voc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77423#M16726</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-25T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77424#M16727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%EVAL() is for evaluating integer arithmetic (or boolean logic).&amp;nbsp; Have quotes inside of %EVAL() is going to cause errors. &lt;/P&gt;&lt;P&gt;Try just submitting the code:&amp;nbsp; %put %eval("1") ;&amp;nbsp; And read the generated error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Perhaps you are confusing %eval() with the normal macro variable processing of replacing &amp;amp;VARNAME with the value of the macro variable VARNAME?&amp;nbsp; If it helps I normally consider that as macro variable EXPANSION (rather than evaluation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most likely you want to replace &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if&amp;nbsp; (%eval("&amp;amp;j ") = "1" AND %eval("&amp;amp;i" ) ="1" )&amp;nbsp; %then &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if&amp;nbsp; ("&amp;amp;j" = "1" AND "&amp;amp;i" ="1" )&amp;nbsp; %then &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;%do;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77424#M16727</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-25T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77425#M16728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saspert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 2 errors you get are fairly simple. Macro variables don't distinguish character from numeric. Everything is, a priori, considered text. When you use %eval, it simply expects the text string to be all numeric characters or arithmetic operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, when you attempt to %eval("&amp;amp;j"), as the "" are not numeric characters or operators, you receive the error you are seeing. The proper way to do this syntax is "%eval(&amp;amp;j)"="1". There, the eval function will attempt to evaluate 1 and not "1". However, %eval should only be necessary if an arithmetic or logical operation needs to be resolved. You don't need to %eval(&amp;amp;j). Simply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if ("&amp;amp;j"="1" and "&amp;amp;i"="1") %then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should achieve your desired results. I believe correcting this will solve the mlogic errors as well so try this and if there is still errors, I should reply somewhat fast. I have a very long program running and am quite bored self-learning in the mean time. For the sake of understanding, you can try both using the corrected "%eval()" and without the eval and see the difference it does in the log via mlogic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77425#M16728</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-07-25T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77426#M16729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Vince28. I think copying the exact syntax seems to work. Even " &amp;amp;j " or "&amp;amp;j." will not work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 19:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77426#M16729</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-25T19:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77427#M16730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Tom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 19:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77427#M16730</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-25T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77428#M16731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Additional question. So the first %if condition seems to be working fine but the %else %if conditions dont seem to be working.&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable J resolves to 2&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable I resolves to 2&lt;/P&gt;&lt;P&gt;MLOGIC(_CONTROL_LOOP._PROCESS_LEGS._METRICS):&amp;nbsp; %IF condition ("&amp;amp;j" = "1" AND "&amp;amp;i" ="1" ) is FALSE&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable I resolves to 2&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable J resolves to 2&lt;/P&gt;&lt;P&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( "&amp;amp;i"&amp;nbsp; = "1" and&amp;nbsp; "&amp;amp;j" &amp;lt;&amp;gt; "1" ) &lt;/P&gt;&lt;P&gt;ERROR: The macro _METRICS will stop executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i missing anything?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;saspert&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 21:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77428#M16731</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-29T21:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77429#M16732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the answer. macro logic does not like &amp;lt;&amp;gt;. When I used NE it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 21:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77429#M16732</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2013-07-29T21:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77430#M16733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure you wanted to use the MAX operator even if macro language supported it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;345&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;346&amp;nbsp;&amp;nbsp;&amp;nbsp; a='1';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;347&amp;nbsp;&amp;nbsp;&amp;nbsp; b='2';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;348&amp;nbsp;&amp;nbsp;&amp;nbsp; c= a &amp;lt;&amp;gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;NOTE: The "&amp;lt;&amp;gt;" operator is interpreted as "MAX".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;349&amp;nbsp;&amp;nbsp;&amp;nbsp; put c= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;350&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;c=2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 22:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-error/m-p/77430#M16733</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-29T22:27:56Z</dc:date>
    </item>
  </channel>
</rss>

