Prev: hi
Next: Help regarding Coding
From: Emil on 10 Feb 2010 08:47 How to how to create a one automatic (macro) variable subsidiary of another in a macro language it should look like this %do i=1 %to 100; and now i nead some k = &i-1; %let k = &i - 1 does not work % do k=&i-1 %to 100-1 make loop in loop k=&I-1 k is not macro variable Emil
From: Oleg on 10 Feb 2010 09:03 Try %let k=%eval(&i-1); Oleg.
From: der_kein_sas_mehr_sehen_kann on 10 Feb 2010 09:06 On 10 Feb., 14:47, Emil <remi...(a)gmail.com> wrote: > How to how to create a one automatic (macro) variable subsidiary of > another in a macro language it should look like this > > %do i=1 %to 100; > > and now i nead some k = &i-1; > > %let k = &i - 1 does not work > > % do k=&i-1 %to 100-1 make loop in loop > > k=&I-1 k is not macro variable > > Emil %do i=1 %to 10 ; %do k=%eval(&i-1) %to 10-1 ; %put i=&i / k=&k ; %end ; %end ; regards ;
|
Pages: 1 Prev: hi Next: Help regarding Coding |