In reply to Mark Jordan.

To permanently save the macro source code to a local file, use a real file name in the FILENAME statement instead of TEMP. For example, to save the file to your c:\my macros folder, something like this would do:
filename mcode "c:\my macros\%qlowcase(&thisMacro).sas";