Date: Wed, 12 Nov 2008 16:48:56 +0100
Reply-To: Allen Ziegenfus <aziegenfus@ANAXIMA.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Allen Ziegenfus <aziegenfus@ANAXIMA.COM>
Subject: Re: Calling Macros
In-Reply-To: <482249F865060740AE33815802042D2F016442DE@LTA3VS012.ees.hhs.gov>
Content-Type: text/plain; charset="iso-8859-1"
Keep in mind that when you switch from %include to autocall, SAS will no
longer "automagically" find new versions of the macros if you happen to
update them. After it has pulled in the macros once into SASMACR it does not
look again.
Allen
-----Ursprüngliche Nachricht-----
Von: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] Im Auftrag von Fehd,
Ronald J. (CDC/CCHIS/NCPHI)
Gesendet: Mittwoch, 12. November 2008 16:38
An: SAS-L@LISTSERV.UGA.EDU
Betreff: Re: Calling Macros
you probably mean
The Autocall Facility
see a discussion in:
A SASautos Companion
http://www2.sas.com/proceedings/sugi30/267-30.pdf
in your autoexec.sas;
filename MyMacros '.';*here or;
filename MyMacros 'c:\temp\MySASmacros';*there;
options MautoSource
SASautos = (MyMacros SASAUTOS);
* using directory-spec:;
options MautoSource
SASautos = ('c:\temp\MySASmacros'
SASAUTOS);
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
> -----Original Message-----
> From: owner-sas-l@listserv.uga.edu
> [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Kevin F. Spratt
> Sent: Tuesday, November 11, 2008 3:47 PM
> To: sas-l@listserv.uga.edu
> Subject: cALLING MACROS
>
> I have created a series of macros that I am using to document
> a sas data set
> I am creating by importing an access table.
>
> I have written an overarching macro that imports the data set and
> then calls the
> macro that includes the attribute statements that formats and labels
> all of the variables.
>
> Now I want to put these long attrib macros into a folder and call
> them. I know that I
> can do this with the %include statement, but would prefer to specify
> earlier in the
> program where these macros are located so the all I need to put in
> the program is
>
> %macro_tab1 ;
>
>
>
> I have looked through the online documentation and have searched the
> SAS-L archives
> since I seem to remember someone demonstrating how to do this but if
> it's there I
> haven't figured out the appropriate search words.
>
> I am working with SAS 9.2 on Windows XP. As always, any help
> appreciated.
>
>
> ______________________________________________________________________
>
> Kevin F. Spratt, Ph.D.
> Department of Orthopaedic Surgery
> Dartmouth Medical School
> One Medical Center Drive
> DHMC
> Lebanon, NH USA 03756
> (603) 653-6012 (voice)
> (603) 653-6013 (fax)
> Kevin.F.Spratt@Dartmouth.Edu (e-mail)
> ______________________________________________________________
> _________
>
>