Date: Mon, 8 Mar 2010 18:02:30 -0500
Reply-To: Ya Huang <ya.huang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ya Huang <ya.huang@AMYLIN.COM>
Subject: Re: Running SAS on PC, need to delete old compiled macro
Check out this old thread:
I think the conclusion is not to permanently compile the macro,
instead, %include the source and it will be compiled on the fly.
On Mon, 8 Mar 2010 15:15:11 -0500, SUBSCRIBE SAS-L Dan
>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:
>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
>I also interested in deleting the macro vaiables compiled from previous
>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.