From: Tom Abernathy on 5 May 2010 03:46 On May 5, 1:15 am, "Kenneth M. Lin" <kenneth_m_...(a)sbcglobal.net> wrote: > >> options macrogen symbolgen sasautos=("C:\dir1\dir2\src"); > Would these macros be pre-compiled and source codes not available in the > same directory? Kenneth - The first time your program attempts to call a macro SAS will notice that it does not have a compiled macro with that name. It will then scan the locations in the SASAUTOS option setting for the first filename it can find that matches the macro name. It then includes that file before it tries to call the macro. So if you call %MYMAC then SAS will look for a file named 'mymac.sas' in the 'C:\dir1\dir2\src' directory. The second time you call %MYMAC it will just use the already compiled version. - Tom |