<?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: ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric oper in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789551#M252655</link>
    <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd be curious what&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%put &amp;gt;&amp;gt;&amp;amp;_studionotes&amp;lt;&amp;lt;&lt;/PRE&gt;
&lt;P&gt;would write to the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe better, see what %put&amp;nbsp; _user_;&amp;nbsp; would report as the value of _studionotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 17:52:26 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-01-11T17:52:26Z</dc:date>
    <item>
      <title>ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789422#M252613</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple macro code here&lt;/P&gt;&lt;PRE&gt;%let suffix=rank_;

proc sql noprint;
	select cats('?"',name,'"n?') into :varr separated by ' ' 
	from dictionary.columns 
	where upcase(libname)=upcase('move') 
and upcase(memname)=upcase('rank')
and upcase(substr(name,1,
length("&amp;amp;suffix")))=upcase("&amp;amp;suffix");
quit;&lt;/PRE&gt;&lt;P&gt;Is generating an error which seems totally unrelated&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1     %studio_hide_wrapper;
MLOGIC(STUDIO_HIDE_WRAPPER):  Beginning execution.
MLOGIC(STUDIO_HIDE_WRAPPER):  %GLOBAL  _STUDIONOTES
MLOGIC(STUDIO_HIDE_WRAPPER):  %GLOBAL  _STUDIOSOURCE
MLOGIC(STUDIO_HIDE_WRAPPER):  %GLOBAL  _STUDIOSTIMER
SYMBOLGEN:  Macro variable _STUDIONOTES resolves to NOTES
MLOGIC(STUDIO_HIDE_WRAPPER):  %IF condition &amp;amp;_studionotes = is FALSE
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: 
       &amp;amp;_studiosource = 
ERROR: The macro STUDIO_HIDE_WRAPPER will stop executing.&lt;/PRE&gt;&lt;P&gt;The program is implemented in sas studio / viya. Any idea about what is generating the error?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 10:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789422#M252613</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2022-01-11T10:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric oper</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789435#M252618</link>
      <description>&lt;P&gt;Since the issue happens in a macro that looks like it is auto-called by SAS Studio, I suggest you restart your SAS Studio and try the code in a pristine session.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789435#M252618</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-11T11:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric oper</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789551#M252655</link>
      <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd be curious what&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%put &amp;gt;&amp;gt;&amp;amp;_studionotes&amp;lt;&amp;lt;&lt;/PRE&gt;
&lt;P&gt;would write to the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe better, see what %put&amp;nbsp; _user_;&amp;nbsp; would report as the value of _studionotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 17:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/789551#M252655</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-01-11T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric oper</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/790967#M253279</link>
      <description>&lt;P&gt;Honestly speaking, I had to remove the first "?" in the cats function and the error did not show again. It seems it was related to how that "?" was maybe processed in the macro var creation&lt;/P&gt;&lt;PRE&gt;proc sql noprint ;
	select cats('"',name,'"n?') into :varr separated by ' ' 
	from dictionary.columns&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-A-character-operand-was-found-in-the-EVAL-function-or-IF/m-p/790967#M253279</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2022-01-19T17:13:09Z</dc:date>
    </item>
  </channel>
</rss>

