Date: Thu, 7 May 2009 10:10:42 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: Dropping variables efficiently
depends on. If you need that dataset later anywhere a view might be more
efficient:
data a / view=a;
set b (drop = x y);
run;
with that you read b only once. If you first copy the dataset to a and
then use it, you have 2 reads and 1 extra write.
Gerhard
On Thu, 7 May 2009 06:59:06 -0700, Paul <paulvonhippel@YAHOO.COM> wrote:
>Is there a more efficient way to drop variables than the obvious?
>
|