Date: Fri, 30 Sep 2011 12:49:45 -0700
Reply-To: Sterling Paramore <gnilrets@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sterling Paramore <gnilrets@GMAIL.COM>
Subject: Data step stops processing if no observations read from where
Content-Type: text/plain; charset=ISO-8859-1
There is no x=2 in the master dataset, but I still want it to append
data to the bottom of the dataset (and I want it to append data to the
bottom of the dataset in the case that there was x=2). Any ideas?
Thanks,
Sterling
20 data master_append;
21
22 put "BEFORE: " _ALL_;
23 set master;
24 where x = 2;
25 put "AFTER: " _ALL_;
26
27 do i = 1 to 5;
28 output;
29 end;
30 run;
BEFORE: x=. i=. _ERROR_=0 _N_=1
NOTE: There were 0 observations read from the data set WORK.MASTER.
WHERE x=2;
NOTE: The data set WORK.MASTER_APPEND has 0 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
|