LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 6 Dec 2004 12:40:40 -0800
Reply-To:   "Pardee, Roy" <pardee.r@GHC.ORG>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Pardee, Roy" <pardee.r@GHC.ORG>
Subject:   Deleting a dset in a macro
Content-Type:   text/plain; charset="us-ascii"

Hey All,

I'm writing a macro that creates an output dataset--here's the signature:

%macro GetSSTY(FromDt, ToDt, InSet, OutSet) ;

I'd like to delete the &OutSet, if it exists, w/out making the user specify the libname & dset name in two separate parameters, and without causing sas to write a:

WARNING: File FOO.BAR does not exist.

To the log. Is that possible? If I do a:

drop table &OutSet ;

In a call to proc sql, I get that warning.

The only other way I know how to do this is w/PROC DATASETS, but for that you've got to specify the Library in an option (or so it seems to me anyway).

Anybody got a clue for me? I'm running v8.2 on win2k.

Thanks!

-Roy

Roy Pardee Research Analyst/Programmer Center For Health Studies (Cancer Research Network) Group Health Cooperative (206) 287-2078

This message and any attached files might contain confidential information protected by federal and state law. The information is intended only for the use of the individual(s) or entities originally named as addressees. The improper disclosure of such information may be subject to civil or criminal penalties. If this message reached you in error, please contact the sender and destroy this message. Disclosing, copying, forwarding, or distributing the information by unauthorized individuals or entities is strictly prohibited by law.


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