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 (June 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 6 Jun 2008 09:54:43 -0400
Reply-To:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject:   Re: SAS Global Macro Variables
In-Reply-To:   <98634D42B37B2E4E96CF3A3BD3CD9AE601AD4122@EX1VS2.nyced.org>
Content-Type:   text/plain; charset=us-ascii

> From: Bucher Scott > Commands in autoexec.sas are read whenever SAS is started.You can put > this in the root directory or elsewhere if you specify its location in > the SAS startup command. > > However, if you need to change these often or you want to make it more > evident to people reading you programs that these macros are being > created, perhaps it may be preferrable to place all these > commnads in a > file you reference with %include at the top of every program.

the command to echo -- i.e.: source2 -- the statements in the autoexec is:

-echoauto

note that this is a command line, or config file -only option

- - - MyProgram.bat - - - sas MyProgram -echoauto

if you want to do this -every- time, -- which I do not recommend -- then the appropriate place is in SASv9.cfg

- - - SASv9.cfg - - - -SASinitialFolder '.' -echoauto

What I -do- recommend, for this Q, is:

- - - autoexec.sas - - -

%Let Libname = Library; %Let Memname = MyData;

%Put _global_;

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov


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