Date: Fri, 13 Sep 2002 16:27:55 -0600
Reply-To: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject: Re: Deleting data set in a data step
Content-Type: text/plain; charset=US-ASCII
Yes, PROC DELETE is easier, but has been made obsolescent (too quick and
easy to use, I suppose) and is no longer documented.
--
JackHamilton@FirstHealth.com
Manager, Technical Development
METRICS Department, First Health
West Sacramento, California USA
>>> "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
09/13/2002 1:18 PM >>>
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