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 (August 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 12 Aug 2002 11:58:35 -0700
Reply-To:     Jonathan Greenberg <greenberg@UCDAVIS.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jonathan Greenberg <greenberg@UCDAVIS.EDU>
Subject:      Sample size as variable...
Content-Type: text/plain; charset="US-ASCII"

Yet another newbie/former C programmer question... Thanks for all who have patiently helped me out so far... Question #3 of the week:

I want to do an if/then statement which relies on the sample size of a dataset...

IF observationvalue > some function of the sample size of the dataset that observationvalue comes from THEN DELETE;

I can't for the life of me seem to figure out how to get the sample size variable available to the IF/THEN statement.

Related: how do I create ANY single-value variable (seems all variable definitions involve creating an array -- I just want to do a simple "n = 3" and "3 3 3 3 3 ... To the end of the dataset".

--j


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