Dear Statalisters,

I would like to obtain a list of user-defined programs currently in memory (programs defined with program define, to be clear), to check it against a list of programs I plan to define and warn the user if there is any overlap. However, program dir simply displays program names, but doesn't store them anywhere (at least, to my understanding). Is there a way around this?
Best (and thanks for the great work!),

Federico