Date: Fri, 13 Sep 2002 16:18:06 -0400
Reply-To: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Subject: Re: Deleting data set in a data step
Content-Type: text/plain; charset="iso-8859-1"
Dylan,
Slightly easier than what others have posted is:
proc delete data=y.x; quit;
I believe you can even use syntax along the lines of:
proc delete data=y.x y.z l.x pl.xxx02; quit;
although you'll have to play with that to be sure.
this is identicial underneat to the proc datasets approach others have
posted, but is more readable, and won't produce all kinds of output in the
logs by default (proc datasets requires a noprint option to match this).
-Brad
> Date: Fri, 13 Sep 2002 12:42:56 -0700
> From: Dylan <dylanroth@HOTMAIL.COM>
> Subject: Deleting data set in a data step
>
> I've written a macro which creates a number of intermediate data sets
> in a permanent library. However, due to the size of these
> intermediate data sets I want to delete them while I'm still in the
> macro. Unfortunately, I have not found a procedure which allows me to
> do this. The code I have tried is along the lines of:
>
> Drop data=Y.X; or Delete data=Y.X;
> ---neither of which work
|