From: SUBSCRIBE SAS-L Dan on
Hi. SASLers:

I have been running SAS using VMS and batch submit for some time. I am
switching to SAS windows interactively. At present when I run the program,
I have logs accumulate from last time run. That is not a big deal as long
as I clear log window every time. However, when come to Sasmacr "catalog"
in work directory, I am having the real problem. I stored the macros at my
hard disk and I use the following options:
options sasautos=('C:\Mymacrolocation');
After first time the macros compiled, it will not recompile even if I
modify the macro code at its physical location. What I have to do is to
physically get into the Sasmacr at work directory and delete them manully.

Is there a program way to delete compiled macro when I run the program? I
tried the following:

proc datasets library=work kill;

and I got these messages:

NOTE: Deleting WORK.SASMACR (memtype=CATALOG).
NOTE: File WORK.SASMACR (memtype=CATALOG) cannot be deleted because it is
in use.

I also interested in deleting the macro vaiables compiled from previous run.

To be short, I want to mimic the running process as close as possible to
batch submit. In other words, I want to run program "fresh" every time.

Thanks.

Dan