<?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: how to compare the value of macro variable with normal variable's in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394395#M66375</link>
    <description>thanks for you reply. u are right! But the variable n created just for test, it could be any numeric var. so i made a little change in your code ,then things got right!! data test; do n = 1 to 5; output; end; run; data comp; set test; do k=1 to 3 ; array d (3); do i=1 to k ; d(i)=1; end; output; end; drop i; run;</description>
    <pubDate>Sat, 09 Sep 2017 03:08:20 GMT</pubDate>
    <dc:creator>Reaven</dc:creator>
    <dc:date>2017-09-09T03:08:20Z</dc:date>
    <item>
      <title>how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394214#M66354</link>
      <description>&lt;P&gt;code ,results are as followed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why macro varable value when compared with normal var within macro environment happends an error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;%macro comp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do n = 1 to 5;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data comp;&lt;BR /&gt;set test;&lt;BR /&gt;length k 3 d1 3 d2 3 d3 3;&lt;BR /&gt;%do i = 1 %to 3;&lt;BR /&gt;%if n &amp;gt; %eval(&amp;amp;i.) %then %do;&lt;BR /&gt;k=%eval(&amp;amp;i.);&lt;BR /&gt;d&amp;amp;i.=1;&lt;BR /&gt;output;&lt;BR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1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;　&lt;/TD&gt;&lt;TD&gt;　&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;　&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 14:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394214#M66354</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-08T14:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394219#M66355</link>
      <description>&lt;P&gt;You are mixing datastep language and macro language which will not work. &amp;nbsp;They are two separate pieces. &amp;nbsp;Learn how to program using Base SAS first, then move onto the more advanced topic of macro creation. &amp;nbsp;For this question, post example test data in the form of a datastep (so we can run it), and then show what you want the output to look like, there is nothing in the code you posted which can't be done in Base SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 14:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394219#M66355</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-08T14:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394283#M66361</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you messed up the &lt;STRONG&gt;%macro&lt;/STRONG&gt;&amp;nbsp;statement. %macro statement is only used for macro variables. For example, in the line "&amp;nbsp;%if n &amp;gt; %eval(&amp;amp;i.) %then %do;", n is not macro variable, it can not be used in %if&amp;nbsp;statement. I wrote an update for your DATA STEP of comp. The output seems to be&amp;nbsp;similar to your expectation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data comp;
	set test;
	by n;
	retain k d1 d2 d3;
	if first.n then do;
		call missing(d1,d2,d3);
		k=1;
		%do i = 1 %to 3;
			k=&amp;amp;i.;
			d&amp;amp;i.=1;
			output;
		%end;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 02:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394283#M66361</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2017-09-09T02:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394319#M66367</link>
      <description>&lt;P&gt;Just adding to the correct answer of RW9. &amp;nbsp;With a few exceptions, it is best to think of the SAS Macro language as a word processor, which does its work BEFORE the data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this concept in mind, it seems nonsensical to have a macro %DO loop inside of data step--even if it doesn't throw an error. &amp;nbsp;The macro statement &amp;nbsp;will be evaluated before the data step is compiled, let alone executed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you think about it this way, you can see that RW9's response is correct--and deserves to be assigned the correct answer--even if you have to go back and rethink your problem!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 18:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394319#M66367</guid>
      <dc:creator>optimist55116</dc:creator>
      <dc:date>2017-09-08T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394335#M66368</link>
      <description>&lt;P&gt;Turn on the MRINT option so you can see what code your macro logic is generating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ASCII code for the lowercase letter N is always greater than the ASCII codes for any string of digits that the macro variable I might evaluate to. &amp;nbsp;So your %IF test is always true where &amp;amp;I is 1 , 2 or 3. &amp;nbsp;Which means that your macro %DO loop will generating these lines of SAS code for your data step to execute.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   k=1;
   d1=1;
   output;
   k=2;
   d2=1;
   output;
   k=3;
   d3=1;
   output;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect that you actually thought that your macro %IF statement could compare the variable N from the the dataset to the numbers 1, 2 and 3. &amp;nbsp;But the macro code has finished running and doing its job of generating code before the generated data step begins running. &amp;nbsp;You would need to use an IF statement instead of a %IF statement if you want to access the value of the variable N.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course if you want K to go from 1 to 3 then it is much easier to do that using a DO loop instead of trying to use a macro %DO loop to generate a bunch of assignment statements. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also your expected output does not really depend on the value of N at all, so not sure why you added the comparison to N anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this instead, macro code not required.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  do n = 1 to 5;
    output;
  end;
run;
data comp;
  set test;
  do k=1 to 3 ;
    array d (3);
    do i=1 to k ;
      d(i)=1;
    end;
    output;
  end;
  drop i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 20:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394335#M66368</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-08T20:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394387#M66373</link>
      <description>Thank you for your input. I learned a lot.</description>
      <pubDate>Sat, 09 Sep 2017 02:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394387#M66373</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2017-09-09T02:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394395#M66375</link>
      <description>thanks for you reply. u are right! But the variable n created just for test, it could be any numeric var. so i made a little change in your code ,then things got right!! data test; do n = 1 to 5; output; end; run; data comp; set test; do k=1 to 3 ; array d (3); do i=1 to k ; d(i)=1; end; output; end; drop i; run;</description>
      <pubDate>Sat, 09 Sep 2017 03:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394395#M66375</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394398#M66377</link>
      <description>&lt;P&gt;Thx for your reply ,&amp;nbsp;i ran your code , but turned an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got an solution,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do n = 1 to 5;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data comp;&lt;BR /&gt;set test;&lt;BR /&gt;do k=1 to 3 ;&lt;BR /&gt;array d (3);&lt;BR /&gt;do i=1 to k ;&lt;BR /&gt;if n &amp;gt;= i then d(i) = 1;&lt;BR /&gt;end;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394398#M66377</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394399#M66378</link>
      <description>&lt;P&gt;Thx for your advice. i've made my way on&amp;nbsp;&lt;img id="cathappy" class="emoticon emoticon-cathappy" src="https://communities.sas.com/i/smilies/16x16_cat-happy.png" alt="Cat Happy" title="Cat Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394399#M66378</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394400#M66379</link>
      <description>&lt;P&gt;let's move on !&lt;img id="cathappy" class="emoticon emoticon-cathappy" src="https://communities.sas.com/i/smilies/16x16_cat-happy.png" alt="Cat Happy" title="Cat Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394400#M66379</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394401#M66380</link>
      <description>&lt;P&gt;sorry , i just put the wrong code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do n = 1 to 5;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data comp;&lt;BR /&gt;set test;&lt;BR /&gt;do k=1 to 3 ;&lt;BR /&gt;array d (3);&lt;BR /&gt;do i=1 to k ;&lt;BR /&gt;if n &amp;gt;= i then d(i) = 1;&lt;BR /&gt;end;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394401#M66380</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the value of macro variable with normal variable's</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394402#M66381</link>
      <description>&lt;P&gt;yeah!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An another solution is turnd %if &amp;nbsp;.. %then to if...then..&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-the-value-of-macro-variable-with-normal-variable/m-p/394402#M66381</guid>
      <dc:creator>Reaven</dc:creator>
      <dc:date>2017-09-09T03:37:04Z</dc:date>
    </item>
  </channel>
</rss>

