From: Patrick
Hi Ron
I appreciate your answer and thanks for the link.
I hope you know that your first remark was rather offensive. Quite
unnecessary!
No offense was intended.
Friday was a full moon;
I have a broken right thumb
and am still getting good at typing spaces w/my left thumb;
I am a geezer.
What you describe as solution is exactly what I tried to avoid: To
manually do what the SAS macro compiler does in a way when I call a
macro.
My thought was: If SAS is able to find a macro when I call it, isn't
there a way to let SAS do the job for me without executing the macro
(may be by only compiling it) and then retrieve the information where
SAS found the macro.
I don't think so.
Compile and store may be two distinct conceptual operations
but they are a unit operation when SAS does it.
If I were doing this task,
I would be using my utility ListMcat
http://www.sascommunity.org/wiki/ListMcat.sas
to provide a list of the macros
used by previously run jobs.
You could insert this at end of every program
with the termstmt command
http://www.sascommunity.org/wiki/Option_TermStmt
this will highlight what kind of discipline there is in your company
as to documenting macros with the description option.
my recommendation is:
%MACRO DoThis
(data =
,...
)/ des = 'site: description of this macro'
;
No one will ever getting around to doing this
but I would like to see all SAS-Institute supplied macros with
des = '<product-name> description'
where produce-name is the name of the folder containing the macro
I think you want to do a freeze-frame:
"Computer!
Stop right here!
Where did you find that macro?"
My opinion is that your solution will be a retrospective.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov