others have provided guidance to a proper solution, so there is little left for me to add,
except to show how you can save macros in a library.
I'm referring to macro code. Not the compiled macros (which when compiled can be stored and retrieved through the mstored and sasmstore options)..[pre]filename macros catalog team.macros ;[/pre]where TEAM would be a libref (perhaps) pointing at a shared area.
The filename engine CATALOG, allows us to store source like macro code progrms, in catalog entries.. The catalog can be addressed usin the fileref as "an aggregate storage location", just like a folder in hierarchical storage or a pds in zOS.
you still need to refer to the macros catalog fileref in the sasautos option value, but you have your
"macros saved in a library"
PeterC