<?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: explanation of this error message in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797930#M40280</link>
    <description>&lt;P&gt;It is not a good idea to use both L and i as names of macro variables in the same program.&lt;/P&gt;
&lt;P&gt;A lower case L looks a lot like an uppercase i .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your %DO loop is using L.&lt;/P&gt;
&lt;P&gt;Your %IF is using i.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus is looks a little strange that your dataset has a variable named i.&amp;nbsp; Make sure you are not getting confused and thinking that the macro variable i is the same thing as the dataset variable i.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 04:11:23 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-02-23T04:11:23Z</dc:date>
    <item>
      <title>explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797782#M40260</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;%macro gick();
%let last= eat travel;
		%do l = 1 %to 2;
			proc freq data = dat_essai noprint;
			tables dates / out = compil;
			%if &amp;amp;l. = 1 %then /*The problem is in this line. It does not recognize &amp;amp;l. as a numeric value*/
                    %do;
				where I = 1 ;
			        %end;
			%if &amp;amp;l. = 2 %then
                    %do;
				where I &amp;gt;=3;
			        %end;
			run; 

			data compil;
			set compil;
			rename count = "%scan(&amp;amp;last.,&amp;amp;l.,' ')"n;
			keep dates count;
			run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this code, I get this error message.&lt;BR /&gt;I saw this message in the forum and I tried to adjust, adapt my code to report the solutions I saw on the forum. But, it still does not work. I ask for a detailed explanation of what this problem is and how can I solve it.&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gick&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68738i2B0727B249FC939A/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 11:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797782#M40260</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-22T11:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797785#M40261</link>
      <description>&lt;P&gt;If you open a brand new SAS session&amp;nbsp; and run this code, do you still get the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, please turn on the macro debugging options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen mlogic;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then run the code again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us the entire LOG for this macro (that's 100% of the log, every single line, not selected portions) by copying the log as text and pasting it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Insert Log Icon in SAS Communities.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66171iFEC370B1DBF07B28/image-size/large?v=v2&amp;amp;px=999" role="button" title="Insert Log Icon in SAS Communities.png" alt="Insert Log Icon in SAS Communities.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 12:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797785#M40261</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-22T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797841#M40263</link>
      <description>&lt;P&gt;You do not show a %mend statement to end the definition of the macro.&lt;/P&gt;
&lt;P&gt;You do not show a matching %end for the %do l=1 %to 2 loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also do not show any call to that macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that use of code such as this, especially in a macro with loops,&lt;/P&gt;
&lt;PRE&gt;data compil;
set compil;&lt;/PRE&gt;
&lt;P&gt;is subject to all sorts of runtime value related errors and may mean the results are not what you think.&lt;/P&gt;
&lt;P&gt;If the only purpose of a data step is to rename variables then use Proc Datasets. It will not change values if there is a hiccup and if the data set is large Proc Datasets will execute much faster as it only affects the data set header information where the variable names, formats, labels and such are stored. A data step has to process every record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797841#M40263</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-22T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797886#M40271</link>
      <description>Would a format be more usable here than a macro?&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value I_fmt&lt;BR /&gt;1 = "eat"&lt;BR /&gt;3 - high = "travel"&lt;BR /&gt;other = 'exclude';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=dat_essai ...;&lt;BR /&gt;table I*dates / out=compil;&lt;BR /&gt;format l I_fmt.;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2022 20:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797886#M40271</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-22T20:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797915#M40274</link>
      <description>&lt;P&gt;Either you have some strange character in your code that is confusing %IF.&lt;/P&gt;
&lt;P&gt;Or there is something you aren't showing that is changing the value of the L macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps just re-typing the code will clear it up?&lt;/P&gt;
&lt;P&gt;You could clean up the formatting and perhaps use more descriptive macro variable names while at it.&amp;nbsp; Make sure the define local macro variables as local.&amp;nbsp; It will not prevent macros you call from messing up their values but it will prevent this macro from messing up the values of macro variables that are being used by the code that is calling this macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro gick();
%local last index name where ;
%let last= eat travel;
%do index = 1 %to 2;
  %let name=%qscan(&amp;amp;last,&amp;amp;index,%str( ));
  %let name=%sysfunc(nliteral(&amp;amp;name));
  %if &amp;amp;index=1 then %let where=(I=1);
  %else %let where=(I&amp;gt;=3);

proc freq data = dat_essai ;
  where &amp;amp;where ;
  tables dates / noprint out=compil(drop=percent rename=(count=&amp;amp;name));
run; 

%end;
%mend gick;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 01:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797915#M40274</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-23T01:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797916#M40275</link>
      <description>&lt;P&gt;Why bother using name literals if the list of names is just space delimited?&amp;nbsp; Are the names in the list not valid SAS names?&amp;nbsp; If they aren't then perhaps you should not be using space as the delimiter in the list of names since some of the names might contain spaces.&amp;nbsp; Also why are you asking %SCAN() to use both space and single quotes as the delimiter characters?&amp;nbsp; Are there really single quotes in the list of names? And if so did you really mean for them to be treated the same as the spaces when scanning?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 01:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797916#M40275</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-23T01:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797929#M40279</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Here is the Log :&lt;BR /&gt;&lt;BR /&gt;MLOGIC(gick) : %LET (le nom de la variable est LAST)&lt;BR /&gt;MLOGIC(gick) : %DBoucle DO démarrée ; variable indice L; valeur de départ : 1; valeur de fin : valeur de fin : 2;&lt;BR /&gt;valeur by : 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;amp;l. = 1&lt;BR /&gt;ERROR: The macro gick will stop executing.&lt;BR /&gt;MPRINT(gick): where I =&lt;BR /&gt;MLOGIC(gick) : Fin de l'exécution.&lt;BR /&gt;27&lt;BR /&gt;28 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;29 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;30 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;31 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;32 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;33 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;34 %LET _SASPROGRAMFILE=;&lt;BR /&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation&lt;BR /&gt;marks.&lt;BR /&gt;35 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;36&lt;BR /&gt;37 ;*';*";*/;quit;run;&lt;BR /&gt;38 ODS _ALL_ CLOSE;&lt;BR /&gt;39&lt;BR /&gt;40&lt;BR /&gt;41 QUIT; RUN;</description>
      <pubDate>Wed, 23 Feb 2022 03:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797929#M40279</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T03:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797930#M40280</link>
      <description>&lt;P&gt;It is not a good idea to use both L and i as names of macro variables in the same program.&lt;/P&gt;
&lt;P&gt;A lower case L looks a lot like an uppercase i .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your %DO loop is using L.&lt;/P&gt;
&lt;P&gt;Your %IF is using i.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus is looks a little strange that your dataset has a variable named i.&amp;nbsp; Make sure you are not getting confused and thinking that the macro variable i is the same thing as the dataset variable i.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 04:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797930#M40280</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-23T04:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797931#M40281</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When copying the code, I forgot to copy %mend, %end. At this level there is no problem. Everything is in order. This is the error message that appears in the log, I find it difficult to understand because the code itself is well used in the macro.&lt;BR /&gt;&lt;BR /&gt;I remain open to discussion.&lt;BR /&gt;Gick</description>
      <pubDate>Wed, 23 Feb 2022 03:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797931#M40281</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T03:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797934#M40282</link>
      <description>Hello,&lt;BR /&gt;No , it is indeed L which is defined as a macro variable and I in capital letters is the name of the variable in the data set. I used it just in the Where statement</description>
      <pubDate>Wed, 23 Feb 2022 04:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797934#M40282</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T04:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797935#M40283</link>
      <description>&lt;P&gt;In that case retype all of the white spaces to make sure you don't have binary zeros or other invisible characters in your program that you cannot detect in the error message.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 04:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797935#M40283</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-23T04:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797936#M40284</link>
      <description>Hello,&lt;BR /&gt;In fact, the macro-variable "last" which has 2 words (eat, travel). The scan function returns the word to me according to the value of &amp;amp;L. and remove the blanks. For example %scan(&amp;amp;last.,1,' ')=eat, %scan(&amp;amp;last.,2,' ')=travel. At this level, there is no problem, the line operates normally.&lt;BR /&gt;&lt;BR /&gt;It is the line %if &amp;amp;l=1 that I encounter a problem.</description>
      <pubDate>Wed, 23 Feb 2022 04:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797936#M40284</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T04:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797937#M40285</link>
      <description>&lt;P&gt;The only way I can get something like %IF &amp;amp;x = 1 %THEN to generate that error message is if the equal sign is not an equal sign.&amp;nbsp; That causes SAS to consider the whole string between %IF and %THEN as a single character expression instead of a comparison operator.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 04:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797937#M40285</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-23T04:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797940#M40286</link>
      <description>I adapted and adjusted your code in relation to what I'm looking for. I have the same error message</description>
      <pubDate>Wed, 23 Feb 2022 05:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797940#M40286</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T05:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797952#M40287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416124"&gt;@Gick&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is strange that the log shows &lt;FONT face="courier new,courier"&gt;mprint&lt;/FONT&gt; for the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; clause, but there is no sign of an &lt;FONT face="courier new,courier"&gt;mprint&lt;/FONT&gt; for the &lt;FONT face="courier new,courier"&gt;proc freq&lt;/FONT&gt; code earlier in the log. Are there more parts to the log for this macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My attention was drawn to the message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation
marks.&lt;/PRE&gt;
&lt;P&gt;If you have unbalanced quotes elsewhere in your code then this can cause all sorts of problems / compounding effects. Please try opening a &lt;U&gt;new&lt;/U&gt; SAS session in which you just have the macro definition for &lt;FONT face="courier new,courier"&gt;gick&lt;/FONT&gt; and call it using &lt;FONT face="courier new,courier"&gt;%gick&lt;/FONT&gt;, with &lt;U&gt;no other code in your SAS session&lt;/U&gt;. I expect it will fail with the missing data set, this would imply the original problem is outside your macro (e.g., unbalanced quotes), but if it fails with the same error then that implies the issue is in the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please report back by showing the log using the "&amp;lt;/&amp;gt;" ("Insert Code") icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797952#M40287</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2022-02-23T08:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797958#M40288</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;%macro gick();
/* Importation de données*/
proc import datafile="C:\dat_essai.txt" out = tab_It replace;
getnames = yes;
delimiter =";";
run;
%let last = eat travel;
%do l = 1 %to 2;
proc freq data = tab_It noprint;
tables dates / out = compil;
%if &amp;amp;l. = 1 %then /*The problem is in this line. It does not recognize &amp;amp;l. as a numeric value*/
%do;
where I = 1 ;
%end;
%if &amp;amp;l. = 2 %then
%do;
where I &amp;gt;=3;
%end;
run;

data compil;
set compil;
rename count = "%scan(&amp;amp;last.,&amp;amp;l.,' ')"n;
keep dates count;
run;

%end;
%mend;
options mprint symbolgen mlogic;
%gick();

/*----------------------------- Another approach ----------------------------------*/
%macro herm();
/* Importation de données*/
proc import datafile="C:\dat_essai.txt" out = tab_It replace;
getnames = yes;
delimiter =";";
run;
%do l = 1 %to 2;
%if &amp;amp;l. = 1 %then %let her=(I =1);

%else %let her=(I &amp;gt;=3);
proc freq data = tab_It noprint;
where &amp;amp;her.;
tables dates / out = compil;
run;

data compil;
set compil;
rename count = "%scan(&amp;amp;last.,&amp;amp;l.,' ')"n;
keep dates count;
run;
%end;
%mend;
options mprint symbolgen mlogic;
%herm();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Both codes work and give me the same results. However, I agree with you, the problem is therefore at the command line level. I have to look for it.&lt;BR /&gt;&lt;BR /&gt;I had submitted part of my macro program and the error it generated.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Gick&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797958#M40288</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797961#M40289</link>
      <description>&lt;P&gt;This WARNING:&lt;/P&gt;
&lt;PRE&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation
marks.
&lt;/PRE&gt;
&lt;P&gt;can also be caused by submitting macro code without a %mend. The SAS system then keeps interpreting everything as further macro code, with all kinds of funny effects.&lt;/P&gt;
&lt;P&gt;Whenever you encounter this message, terminate the current session and start with a new, clean one. Submit your code step by step until the message starts to appear, this will help you find the incorrect code part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, for the log to be really helpful to us, you MUST (as in &lt;FONT size="6"&gt;&lt;U&gt;&lt;STRONG&gt;MUST&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;) use this button to post it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797961#M40289</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-23T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797963#M40290</link>
      <description>&lt;P&gt;One other &lt;U&gt;&lt;STRONG&gt;BIG&lt;/STRONG&gt;&lt;/U&gt; hint: always start to debug your code at the top. Tolerate &lt;U&gt;NO&lt;/U&gt; WARNING/ERROR/extraneous NOTE(*), fix each single step until it issues no such message and produces the expected result. Only then advance to the next step. Often, fixing the first issue cleans up all or most of the following issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(*): NOTEs like "XXX is uninitialized" or "was converted to numeric/character" or "MERGE has repeats in more than one dataset" and so on. A proper step has only NOTEs about the size of the created dataset(s) and the time it took.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797963#M40290</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-23T08:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797995#M40298</link>
      <description>&lt;P&gt;This code works alone. But, by associating it in my whole macro program, I get the same error&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;amp;I. = 1&lt;BR /&gt;ERROR: The macro herm will stop executing. "&lt;BR /&gt;&lt;BR /&gt;I note that I rechecked the other lines of my code, it works. This line, on the other hand, generates an error message that I don't understand, so executing it alone, it works.&lt;BR /&gt;Thank you for your help. Explanations are welcome.&lt;BR /&gt;Gick&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797995#M40298</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-02-23T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: explanation of this error message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797998#M40301</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416124"&gt;@Gick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This code works alone. But, by associating it in my whole macro program, I get the same error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This means your existing code is wrong or so badly written that it does not lend itself to being expanded.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/explanation-of-this-error-message/m-p/797998#M40301</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-23T12:05:00Z</dc:date>
    </item>
  </channel>
</rss>

