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 (June 2001, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 29 Jun 2001 09:22:09 -0700
Reply-To:   "Huang, Ya" <ya.huang@AGOURON.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Huang, Ya" <ya.huang@AGOURON.COM>
Subject:   Re: Excluding list of values efficiently?
Comments:   To: "Metz, Seymour" <smetz@NSF.GOV>
Content-Type:   multipart/alternative;

It is in

SAS Base Software SAS Language Reference: Concepts SAS System concept Expressions Where expressions Syntax of Where Expression

Ya Huang

> -----Original Message----- > From: Metz, Seymour [mailto:smetz@NSF.GOV] > Sent: Friday, June 29, 2001 9:01 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: Excluding list of values efficiently? > > > I've been looking at the online CD, specifically "SAS > Language Reference: > Dictionary" and didn't see that text. Exactly where did you find it > > > Shmuel (Seymour J.) Metz > > > -----Original Message----- > > From: Huang, Ya [SMTP:ya.huang@Agouron.COM] > > Sent: Friday, June 29, 2001 11:49 AM > > > > Since the discussion for this seems to getting hot, > > I feel it interesting to search SAS Doc and see if on earth > > there is any say regarding the use of NOT IN, and here is what > > I've found in SAS OnlineDoc (CD) > > > > --------------------------- > > IN Operator > > > > The IN operator, which is a comparison operator, searches > > for character and numeric values that are equal to one from a > > list of values. The list of values must be in parentheses, with > > each character value in quotation marks and separated by > > either a comma or blank. > > > > For example, suppose you want all sites that are in North > > Carolina or Texas. You could specify: > > > > where state = 'NC' or state = 'TX'; > > However, the easier way would be to use the IN operator, > > which says you want any state in the list: > > > > where state in ('NC','TX'); > > > > **** In addition, you can use the NOT logical > > **** operator to exclude a list. For example, > > **** where state not in ('CA', 'TN', 'MA'); > > > > So SAS did document this operator, at least in V8 Online Doc. >


[text/html]


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