<?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: Basic MACRO error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408389#M99679</link>
    <description>&lt;P&gt;Well, I don't know how to fix it, because I don't understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's irrelevant here. What you need to do before you write any macro, is get the code working without macros, for the simple case where the number of interest is 122.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the code working without macros, then we can turn it into a macro if you still want to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So show me the code that works without macros for the simple case where the number of interest is 122.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Oct 2017 18:50:20 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2017-10-29T18:50:20Z</dc:date>
    <item>
      <title>Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408372#M99662</link>
      <description>&lt;DIV&gt;Newbie here, need help with basic macro.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I used the following macro:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%macro&amp;nbsp;codes (a);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;data&amp;nbsp;ab.codes&amp;nbsp;;&lt;/DIV&gt;&lt;DIV&gt;set&amp;nbsp;ab.codes ;&lt;/DIV&gt;&lt;DIV&gt;if&lt;/DIV&gt;&lt;DIV&gt;(&lt;/DIV&gt;&lt;DIV&gt;nm1='&amp;amp;a' or&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nm2='&amp;amp;a' or&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nm3='&amp;amp;a' or&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nm4='&amp;amp;a' or&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nm5='&amp;amp;a'&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;then &amp;amp;a =1 ;&lt;/DIV&gt;&lt;DIV&gt;if &amp;amp;a = . and internal=0 then &amp;amp;a=0;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;%mend;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I used the following command:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%codes ('122');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, the log gave the following message:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV&gt;WARNING: The data set&amp;nbsp;&lt;SPAN&gt;ab.codes&lt;/SPAN&gt; may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 33 variables.&lt;/DIV&gt;&lt;DIV&gt;WARNING: Data set&amp;nbsp;&lt;SPAN&gt;ab.codes&lt;/SPAN&gt; was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 seconds&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpu time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;NOTE: Line generated by the macro variable "A".&lt;/DIV&gt;&lt;DIV&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;122&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/DIV&gt;&lt;DIV&gt;NOTE: Line generated by the macro variable "A".&lt;/DIV&gt;&lt;DIV&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 122&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I fix this error?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408372#M99662</guid>
      <dc:creator>sasnewbie12</dc:creator>
      <dc:date>2017-10-29T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408377#M99667</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;before your macro, run it again and show us the SAS log, if that doesn't give you enough information for you to solve the problem yourself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408377#M99667</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-29T18:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408381#M99671</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;4059&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;4060&amp;nbsp; options mprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;4061&amp;nbsp; %codes (122);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MPRINT(codes):&amp;nbsp; &amp;nbsp;data ab.codes ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MPRINT(codes):&amp;nbsp; &amp;nbsp;set ab.codes ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MPRINT(codes):&amp;nbsp; &amp;nbsp;if ( nm1='&amp;amp;a' or nm2='&amp;amp;a' or nm3='&amp;amp;a' or nm4='&amp;amp;a' OR nm5='&amp;amp;a' ) then 122 =1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MPRINT(codes):&amp;nbsp; &amp;nbsp;if 122 = . and internal=0 then 122=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MPRINT(codes):&amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;WARNING: The data set ab.codes may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 33 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;WARNING: Data set ab.codes was not replaced because this step was stopped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpu time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;NOTE: Line generated by the macro variable "A".&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 122&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;NOTE: Line generated by the macro variable "A".&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 122&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408381#M99671</guid>
      <dc:creator>sasnewbie12</dc:creator>
      <dc:date>2017-10-29T18:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408384#M99674</link>
      <description>&lt;P&gt;So its not reading the &amp;amp;a within ' ' . However, it needs to be within quotations because it is a categorical variable observation. How do I reconcile that?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408384#M99674</guid>
      <dc:creator>sasnewbie12</dc:creator>
      <dc:date>2017-10-29T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408385#M99675</link>
      <description>&lt;P&gt;The macro resolves to a statement which is (in part)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then 122=1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which makes no sense in SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408385#M99675</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-29T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408387#M99677</link>
      <description>&lt;P&gt;Please elaborate how I should fix the syntax within parenthesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a _ before the variable name (then _&amp;amp;a=1) and it created the variable. However, the '&amp;amp;a' within parenthesis is still not being read as 122.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408387#M99677</guid>
      <dc:creator>sasnewbie12</dc:creator>
      <dc:date>2017-10-29T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408389#M99679</link>
      <description>&lt;P&gt;Well, I don't know how to fix it, because I don't understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's irrelevant here. What you need to do before you write any macro, is get the code working without macros, for the simple case where the number of interest is 122.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the code working without macros, then we can turn it into a macro if you still want to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So show me the code that works without macros for the simple case where the number of interest is 122.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408389#M99679</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-29T18:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408392#M99682</link>
      <description>&lt;P&gt;Run next code and compare to yours original:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro codes (a);
 
data ab.codes ;
set ab.codes ;
if
(
nm1="&amp;amp;a" or 
nm2="&amp;amp;a" or 
nm3="&amp;amp;a" or  
nm4="&amp;amp;a" or 
nm5="&amp;amp;a" 
)
then var_&amp;amp;a =1 ;
if var_&amp;amp;a = . and internal=0 then var_&amp;amp;a=0;
run;
%mend;
%codes (122);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pay attention:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '&amp;amp;a' is the string of ampersand and the character a.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "&amp;amp;a" means to replave the macro variable with its vale, that is: "122"&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408392#M99682</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-10-29T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408394#M99684</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;, var_@a has never been mentioned, and I doubt this is what the OP wants. This is why he needs to write code without macros that works here, and then we will all understand what he is doing, and then it will likely be easy to turn into a working macro. Without that, I doubt we can proceed.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408394#M99684</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-29T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408396#M99686</link>
      <description>&lt;P&gt;Three items to note, partially mentioned already ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, replace all your single quotes with double quotes.&amp;nbsp; Macro variable references within single quotes will not be resolved (as you have seen).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, when calling the macro, do not use quotes:&amp;nbsp; %codes (122) but not %codes ('122')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, as you say you intended, add the underscore in a few places:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... then _&amp;amp;a = 1;&lt;/P&gt;
&lt;P&gt;if _&amp;amp;a = . and internal=0 then _&amp;amp;a = 0;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408396#M99686</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-10-29T19:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408399#M99689</link>
      <description>&lt;P&gt;Great, you guys solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issues were:&lt;/P&gt;&lt;P&gt;1) using " " instead of&amp;nbsp; ' ' in order to put the macro value inside of quotes.&lt;/P&gt;&lt;P&gt;2) not starting a variable name with numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shmuel, you put var before the variable name _&amp;amp;a; is it necessary to put var before adressing a variable? Seems it worked fine after I added the _&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408399#M99689</guid>
      <dc:creator>sasnewbie12</dc:creator>
      <dc:date>2017-10-29T19:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408400#M99690</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/169765"&gt;@sasnewbie12&lt;/a&gt;, to use the macro run it as %codes(122); without the single quotes.&lt;/P&gt;
&lt;P&gt;If it was my typo - I'm going to edit and correct it.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408400#M99690</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-10-29T19:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408402#M99692</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;, you are right that var_&amp;amp;a was never mentiond but neither _&amp;amp;a was mentioned,&lt;/P&gt;
&lt;P&gt;and geting resolved as122=1 or 122=0 are the core of that error, and it should be replaced with a&amp;nbsp;&lt;/P&gt;
&lt;P&gt;valid variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408402#M99692</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-10-29T19:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Basic MACRO error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408403#M99693</link>
      <description>&lt;P&gt;You need a valid sas name.&lt;/P&gt;
&lt;P&gt;122 is invalid as sas variable name.&lt;/P&gt;
&lt;P&gt;You can change the var_&amp;amp;a to any other prefix or any other valid name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g.:&amp;nbsp; x&amp;amp;a , prefix_&amp;amp;a.suffix ,&amp;nbsp; any&amp;amp;a.flag ...etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pay attention - I have added a dot to assign the end of macro variable name. in order to add more characters&lt;/P&gt;
&lt;P&gt;to the variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If &lt;STRONG&gt;&amp;amp;a = 122&lt;/STRONG&gt; then any&amp;amp;a.flag = any122flag (without the dot)&lt;/P&gt;
&lt;P&gt;if &lt;STRONG&gt;&amp;amp;a = lib&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;then &amp;amp;a.name = libname (with a single dot), BUT &amp;amp;a..name = lib.name (with double dots)&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-MACRO-error/m-p/408403#M99693</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-10-29T19:45:49Z</dc:date>
    </item>
  </channel>
</rss>

