<?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: &amp;var and %eval, cannot combine?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175506#M33705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its hard to tell, as there is no full code to show what you are doing.&amp;nbsp; My first question would be why do you need reponse var as a parameter, or have this in a macro at all?&amp;nbsp; Put response var in a dataset, then use joins to get the result rather than a where clause.&amp;nbsp; Best bet, provide some test code/data and what you want out of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 09:11:12 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-11-19T09:11:12Z</dc:date>
    <item>
      <title>&amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175497#M33696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined macro variables nclass, n0, n1, ..., n&amp;amp;nclass, and response, then I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql undo_policy=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table temp as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do k=1 %to &amp;amp;nclass;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; when &amp;amp;n%eval(&amp;amp;k-1) le myvar le &amp;amp;&amp;amp;n&amp;amp;k then %scan(&amp;amp;response,&amp;amp;k," ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else .&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as RC&lt;/P&gt;&lt;P&gt;&amp;nbsp; from temp;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the above code is: &amp;amp;n%eval(&amp;amp;k-1), there is no problem with &amp;amp;&amp;amp;n&amp;amp;k.&lt;/P&gt;&lt;P&gt;Basically it evaluates &amp;amp;n then combine with 0 when k=1. If n is not defined, then it will have unresolved macro variable N problem; if n is defined as 357, for instance, then it will give 3570 for&lt;/P&gt;&lt;P&gt;&amp;amp;n%eval(&amp;amp;k-1) when k=1. What I really want is the value of macro variable n0.&amp;nbsp; Even when I use &amp;amp;&amp;amp;n%eval(&amp;amp;k-1), it still does not work. How can I represent the value of n0 when k=1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 06:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175497#M33696</guid>
      <dc:creator>Macro</dc:creator>
      <dc:date>2014-11-18T06:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175498#M33697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just Use 'n%eval(&amp;amp;k-1)' this should work.&lt;/P&gt;&lt;P&gt;when you use &amp;amp;n%eval(&amp;amp;k-1), sas will consider n as mactro variable, but now it will be considered a string for macro processing and after that it will be considered as n0,n1--- accordingly after the macro variable resolution....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 06:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175498#M33697</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-11-18T06:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175499#M33698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not work. I would like the value of n%eval(&amp;amp;k-1) instead of the name of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175499#M33698</guid>
      <dc:creator>Macro</dc:creator>
      <dc:date>2014-11-18T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175500#M33699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What are you attempting to do.&amp;nbsp; Provide test data and example output.&amp;nbsp; I would avoid using macro lists and loops to scan over these, its gets complicated and messy.&amp;nbsp; Have a look at array processing for instance.&lt;/P&gt;&lt;P&gt;Assuming dataset of:&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N1NCLASS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N2NCLASS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N3NCLASS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N1K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N2K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N3K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N1RESPONSE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N2RESPONSE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N3RESPONSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then code such as:&lt;BR /&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array nvals{3} n1nclass n2nclass n3nclass;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array kvals{3} n1k n2k n3k;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array rvals{3} n1response n2response n3response;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do I=2 to 3; /* Note 1 does not have a -1! */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if nvals{I-1} le kvals{I} then result=scan(rvals{I},i," ");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, if you number your variables such:&lt;/P&gt;&lt;P&gt;NCLASS1 NCLASS2 NCLASS3, NK1 NK2 etc.&lt;/P&gt;&lt;P&gt;then you can also use the - to show list which will shrink your code.&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array nvals{3} n1nclass-n3nclass;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175500#M33699</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-18T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175501#M33700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let j= %eval(&amp;amp;k-1);&lt;/P&gt;&lt;P&gt;when &amp;amp;&amp;amp;n&amp;amp;j le myvar le &amp;amp;&amp;amp;n&amp;amp;k then %scan(&amp;amp;response,&amp;amp;k," ")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175501#M33700</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-18T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175502#M33701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While arrray is an alternative and helpful sometimes, but it is not macro programming. The response variable is a input parameter. Can we use arrray as an input parameter of a macro program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 20:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175502#M33701</guid>
      <dc:creator>Macro</dc:creator>
      <dc:date>2014-11-18T20:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175503#M33702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you check my above code, you see it was in a sql case structure. I guess you cannot use %let j= %eval(&amp;amp;k-1) in the case structure. That is why I did not assign %eval(&amp;amp;k-1) to an auxilary variable. Do you have other ways?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 20:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175503#M33702</guid>
      <dc:creator>Macro</dc:creator>
      <dc:date>2014-11-18T20:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175504#M33703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you say that the %let j= can't be used in the case structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 21:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175504#M33703</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-18T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175505#M33704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do that type of relative name expansion it is easier if you make a new variable to hold the name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let n0=000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let k=1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let name=n%eval(&amp;amp;k-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put &amp;amp;&amp;amp;&amp;amp;name ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your loop could be re-written as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%do k=1 %to &amp;amp;nclass;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %let previous=n%eval(&amp;amp;k-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %let current=n&amp;amp;k;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; when&lt;/SPAN&gt; &amp;amp;&amp;amp;&amp;amp;previous &lt;SPAN style="color: #0000ff;"&gt;le myvar le&lt;/SPAN&gt; &amp;amp;&amp;amp;&amp;amp;current &lt;SPAN style="color: #0000ff;"&gt;then&lt;/SPAN&gt; %scan(&amp;amp;response,&amp;amp;k," ")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%end;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can eliminate the N0,N1,... macro variables and just make a delimited list of values like you have a delimited list of responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let values=0 10 20 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let responses=X Y Z ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let nclass=%sysfunc(countw(&amp;amp;values,%str( )));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%do k=1 %to &amp;amp;nclass-1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; when&lt;/SPAN&gt; %scan(&amp;amp;values,&amp;amp;k,%str( )) &lt;SPAN style="color: #0000ff;"&gt;&amp;lt;= MYVAR &amp;lt;=&lt;/SPAN&gt; %scan(&amp;amp;values,&amp;amp;k+1,%str( ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; then&lt;/SPAN&gt; %scan(&amp;amp;response,&amp;amp;k,%str( ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%end;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt; %scan(&amp;amp;response,&amp;amp;nclass,%str( ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; end&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 22:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175505#M33704</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-11-18T22:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175506#M33705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its hard to tell, as there is no full code to show what you are doing.&amp;nbsp; My first question would be why do you need reponse var as a parameter, or have this in a macro at all?&amp;nbsp; Put response var in a dataset, then use joins to get the result rather than a where clause.&amp;nbsp; Best bet, provide some test code/data and what you want out of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175506#M33705</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-19T09:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175507#M33706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code this should work, &lt;/P&gt;&lt;P&gt;%sysfunc(cat(&amp;amp;n,%eval(&amp;amp;k-1)))&lt;/P&gt;&lt;P&gt;The error is mainly because the values &amp;amp;n and %eval are considered as different macro invocations, I thought that if we can make this concatinated.&lt;/P&gt;&lt;P&gt;This resolves the value, but the warning is still there.&lt;/P&gt;&lt;P&gt;I tried it with below code, &lt;BR /&gt;%let n1 = afdsjhysadjh;&lt;BR /&gt;%let k = 2;&lt;BR /&gt;%put %sysfunc(cat(&amp;amp;n,%eval(&amp;amp;k-1)));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 11:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175507#M33706</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-11-19T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;var and %eval, cannot combine??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175508#M33707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that this question has already been answered, but here is yet another solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when %unquote(%nrstr(&amp;amp;n)%eval(&amp;amp;k-1)) le myvar le &amp;amp;&amp;amp;n&amp;amp;k then %scan(&amp;amp;response,&amp;amp;k," ")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/var-and-eval-cannot-combine/m-p/175508#M33707</guid>
      <dc:creator>Fraktalnisse</dc:creator>
      <dc:date>2014-11-19T13:13:59Z</dc:date>
    </item>
  </channel>
</rss>

