| Date: | Thu, 31 Jul 2008 13:40:34 -0400 |
| Reply-To: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Subject: | Re: Using a Double (and more) Negative |
| In-Reply-To: | <200807311448.m6VAkubq002381@malibu.cc.uga.edu> |
| Content-Type: | text/plain; charset=us-ascii |
> From: Chang Chung
>
> The NOT NOT (or a better known, ^^) is a legitimate shortcut
> to "normalize"
> numeric values to 0/1 and a well known example of the
> "Dorfmanism," which is
> named so after Paul Dorfman's succinct (and, well, ...
> distinct) style of sas coding.
further trivia associated with Boolean evaluation in SAS;
while doing RnD for my paper
DO Which? Loop, UNTIL, or WHILE?
A Review of DATA Step and Macro Algorithms
http://tinyurl.com/4z6n7u for:
http://www2.sas.com/proceedings/forum2007/067-2007.pdf
I discovered that the functions while and until used in the do loop
process values in (False, not False)
by which I mean that negative values are evaluated as true.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
|