Date: Tue, 2 May 2000 13:27:30 -0400
Reply-To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject: Re: Use of %eval and/or %sysevalf
Content-Type: text/plain; charset="iso-8859-1"
> From: JP [mailto:R_E_M_O_V_E_lecruguel@EPID.JGH.MCGILL.CA]
> I would like to use some non integer macro variables: ex:
> %DO f_x = 0.1 %TO 2 %BY 0.1;
> ...
> Is there an "official" way to do that? I succeeded once with
> EVAL (using a x10 factor) but I need something more robust.
sorry JP, the macro language is soooooo simple that it can just barely
handle integers
and then only when told explicitly via %eval.
> %DO f_x = 0.1 %TO 2 %BY 0.1;
The macro key-word that is unimplemented is <%BY>.
consider this kludge:
%local I F_X;
%DO I = 1 %TO 20;
%LET F_X = %sysevalf(&I/10);
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
---> cheerful provider of UNTESTED SAS code!*! <---