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 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 10 Dec 2002 13:19:55 -0500
Reply-To:     Boyd Newlin <NewlinBo@FHSC.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Boyd Newlin <NewlinBo@FHSC.COM>
Subject:      Re: Macro Variables: Deleting
Content-Type: text/plain; charset=ISO-8859-1


Here is way you can do it ...

proc sql stimer noprint; select '%let '||trim(left(name))||'= ;' as clearit into : clear separated by ' ' from dictionary.macros where scope = 'GLOBAL' & VALUE > ' '; quit;


This simply sets all macro variables to null.


Boyd Newlin Health Metrics First Health Services Corp 4300 Cox Road Glen Allen, VA 23060 804 934-3209

>>> Peter Crawford <peter.crawford@DB.COM> 12/10/02 09:53AM >>> It might be simpler to start a new session ............... If you want to go down new-ish methodologies .... and have sas/connect available..... you might put each of these "SAS program" tasks into a sas/connect "remote" session which is just starting another sas session on your platform. Then with connectwait=NO, you can sit back and watch (with command rdisplay) your system perform multiple sas jobs concurrently !

Using this sas/connect methodology knowmn as MPconnect is a lot more interesting than trying to "clean" your current environment of not only those macro variables but also macros, formats and perhaps other, more or less-obvious, global options.

Good Luck Peter Crawford

Datum: 05/12/2002 18:49 An: SAS-L@LISTSERV.UGA.EDU

Antwort an: David Friedman <harrypotterdhf@EARTHLINK.NET>

Betreff: Macro Variables: Deleting Nachrichtentext:

I have the need to run multiple SAS programs. Everytime I run I want to make sure that all macro variables are cleared out in the pool. How would I accomplish this.



Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message. Thank you.

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