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 (September 1999, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 1 Oct 1999 00:05:18 GMT
Reply-To:   "Daniel J. Nordlund" <dnordlund@AOL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Daniel J. Nordlund" <dnordlund@AOL.COM>
Organization:   AOL http://www.aol.com
Subject:   Re: Use of SUM function in data step WHERE clause

>SAS-L, > >This works: > >proc print data=test(where=(sum(x1, >x2, x3)>80)); >run; > >and this works also: > x4=sum(of x1-x3); > >This does not: >proc print data=test(where=(sum(of >x1-x3)>80)); >run; > >ERROR: Syntax error while parsing >WHERE clause. > >What am I missing? Why does the >where clause support the SUM >function in one form but not another? > >Thans for any insight. > >Rodney > >Rodney J. Presley, Ph.D. >PRO-West >10700 Meridian Av. N., suite 100 >

Maybe someone else can provide the insight (which I can't), but if your variables, x1, x2, x3 are consecutive variables you can use the following form:

where=(sum(x1--x3)>80)

Hope this helps,

Dan Nordlund


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