03-04-2011 09:10 AM
03-04-2011 01:08 PM
03-04-2011 01:40 PM
03-04-2011 06:41 PM
03-04-2011 03:48 PM
03-04-2011 04:58 PM
03-04-2011 06:33 PM
03-04-2011 11:33 PM
03-06-2011 08:06 PM
04-06-2012 05:58 PM
Aside from the problem of evaluating non integers with the implied %EVAL. The macro language does not evaluate compound expressions in the same way as in the DATA step.
In the DATA step
if 5 < x < 10 is evaluaged as if 5 < x and x < 10
In the macro language
%if 5 < &x < 10 is evaluated as %if (5 < &x) < 10
Regardless of the value of &X this expression is true as both 0 and 1 are less than 10.
In the macro language always break up compound expressions.
%if 5 < &x and &x < 10 %then ....
04-07-2012 05:30 PM
It is always fun to meet those that read and use the SAS Press books. If you are at SAS Global Forum or PharmaSUG this spring look me up. I would be very happy to meet and talk with you and to of course sign your book.
04-07-2012 06:49 PM
Haikuo: While I haven't written any books that I can sign, look me up, too, if you are going to SGF. I'm doing one presentation with FriedEgg, another with both FriedEgg and KSharp (and a couple of other presentations too) and, of course, ArtC and I will both be presenting at the SAS-L/ SAS Discussion Forums/ sasCommunity.org/ SASProfessionals.net/ SASCanadaCommunity meetup on Tuesday night (April 24th) between 6pm and 8pm.