LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2011, 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 Jul 2011 14:22:37 -0400
Reply-To:     bbser 2009 <bbser2009@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         bbser 2009 <bbser2009@GMAIL.COM>
Subject:      Sample large datasets with observations logically removed
Content-Type: text/plain; charset="us-ascii"

Greetings!

If we run the code below, we will get the error indicated in the log. Now imagine the data set have is very large and we do not want to make any change on it. Then how can we avoid such errors when sampling the data set? Thank you.

Max (Maaxx)

=========== log 98 data _null_; 99 do i=2; 100 set have point=i; 101 end; 102 stop; 103 run;

i=2 num=. _ERROR_=1 _N_=1 NOTE: DATA statement used (Total process time): real time 0.02 seconds cpu time 0.01 seconds

============ code data have; input num; cards; 1 2 3 ;

data have; modify have; if num=2 then remove; run;

data _null_; do i=2; set have point=i; end; stop; run;


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