Date: Wed, 20 Jun 2007 12:35:49 -0400
Reply-To: "Wainwright, Andrea" <andrea.wainwright@CAPITALONE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Wainwright, Andrea" <andrea.wainwright@CAPITALONE.COM>
Subject: Re: mistakes in SAS that don't generate errors
Content-Type: text/plain; charset="us-ascii"
My pet peeve has always been merging but forgetting to use a by
statement. There is an option to make that an error, but by default you
get a warning.
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Friday, June 15, 2007 4:01 AM
Subject: mistakes in SAS that don't generate errors
I'm looking for ways to produce unexpected results in SAS that don't
generate an error or warning message. Your syntax is fine, it works as
SAS intended but not as you intended. Three examples:
* Inadvertantly respecify a user-defined format. (This does generate a
note to the log that an existing format has been overwritten but that's
easy to overlook).
* Using a "numbered range list" in a function, e.g. "sum(x1-x5)". This
will calculate the sum of x1 minus x5, "sum(of x1-x5)" caculates the sum
of x1 to x5.
* Forgetting that missing values are represented by minus infinity in
Are there other nice examples of SAS syntax that looks like it does what
you want it to at first glance or with insufficient coffee?
The information contained in this e-mail is confidential and/or proprietary
to Capital One and/or its affiliates. The information transmitted herewith
is intended only for use by the individual or entity to which it is
addressed. If the reader of this message is not the intended recipient,
you are hereby notified that any review, retransmission, dissemination,
distribution, copying or other use of, or taking of any action in reliance
upon this information is strictly prohibited. If you have received this
communication in error, please contact the sender and delete the material
from your computer.