LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 1 Sep 1998 10:26:40 -0400
Reply-To:     "Brucken, Nancy" <Nancy.Brucken@WL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         "Brucken, Nancy" <Nancy.Brucken@WL.COM>
Subject:      Re: SAS Autocall Macro
Content-Type: text/plain

jensenk@my-dejanews.com wrote: > > > Does anyone have any good examples (or know where some are) of creating > > Autocall Libraries? I have the Macro book but there are not any > examples and > > it is a little terse for me. What I would like to do is have a macro > that I > > can call from any SAS program. That way the info in the Macro only has > to be > > updated in one place rather than each program that uses the information. >

We've grouped our autocall macros into various directories by macro functionality, and use a SAS OPTIONS statement to make them available to programs that need them. The macros are just stored as text files. The operating system in this example is Unix, but can be modified appropriately for any platform. The statement we use is as follows:

options mautosource sasautos=('!sasroot/sasautos'

'/develop/rpt/onco/1003/maclib')

I think the first directory is required by SAS. You can string many of these together; if macros with the same name are stored in two different directories, SAS pulls in the first one it finds. The other requirement for handling them this way is that the macro names must match their file names. For example, a macro called MYMACRO must be stored in a file called mymacro.sas. Note that these are not compiled macros.

Hope this helps, Nancy

Nancy Brucken Parke-Davis, QIP (734) 622-5767 Internet address: Nancy.Brucken@wl.com


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