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 (February 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 15 Feb 2008 08:01:10 -0500
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: to display in function of nobs
Comments:   To: nfleury.iris@GMAIL.COM

You indicated that you wanted to 'display' a file, but then provided an example where you were trying to sort the file.

If you are trying to create a new file as the result of sorting an existing file, but only if the file contains a certain number of records, I would use proc sql.

Try something like the following:

data stepa; set sashelp.class; if _n_ lt 17 then output; run;

proc sql noprint; create table stepb as select * from stepa having count(*) eq 16; quit;

HTH, Art ---------- On Fri, 15 Feb 2008 02:01:41 -0800, nfleury.iris@GMAIL.COM wrote:

>Hello, I want display the folder "toto_good" only if the number of >observation ("nobs") is equal to 48 > >thanks you . > > >proc sort data=toto_good out=goodf.toto_good ; > by lab_code param_name param_unit well; > where (nobs)=48; >run;


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