LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: JP <R_E_M_O_V_E_lecruguel@epid.jgh.mcgill.ca>
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!*! <---


Back to: Top of message | Previous page | Main SAS-L page