The question is different but looks like this one. https://communities.sas.com/communications.
My first thoughts would be using scaproc and run those as Linus did the proposal in that thread.
Analyzing programs without running those can be a hard challenge. SAS macro-s are possible change code.
Perhaps you can set all access on data/programs read-only and run the code with having obs=0 being set.
The code generation done as part of dataset content will be missed.
---->-- ja karman --<-----