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 (December 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 21 Dec 2006 06:09:20 -0800
Reply-To:   "hiemstra@yahoo.com" <hiemstra@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "hiemstra@yahoo.com" <hiemstra@YAHOO.COM>
Organization:   http://groups.google.com
Subject:   Re: SQL SAS for DATA step OBS= statement
Comments:   To: sas-l@uga.edu
In-Reply-To:   <200612210248.kBKMl6EO002377@mailgw.cc.uga.edu>
Content-Type:   text/plain; charset="us-ascii"

> proc sql; > reset inobs=5; > select * from sashelp.class where sex='F'; > reset inobs=max;

I tried this and it runs. It does not, however, restrict the rows.

> >PROC SQL FEEDBACK; > > CREATE &vt WORK.&_filename AS > > SELECT *, COUNT(*) AS ob_num > > FROM &_dir..&_filename(WHERE=(bus_type='SF')) > > WHERE CALCULATED ob_num LE 1000; > >QUIT; > > IT depends on what you mean by "work". If you change the SQL WHERE clause to > a HAVING clause, the code should run.

Substituting the HAVING clause in, my SQL runs but I get an empty dataset.

Stephen


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