Hi,
I would like to write code which executes some module, but in the same time automatically prints all variables/matrices or stores them in an excel sheet. For doing that, first I would need some functionality like "SHOW" which gives the local variables within the module, so that I can make a loop accross the variables and print and export them to excel. So in my opinion the key difficulty here is to get and store a list of all variables within a module. Is that possible with some IML functionalities?
Example:
proc iml;
start example(input_var);
var1 = input_var #2;
var2 = input_var + 2;
measure = var1 || var2;
return(measure)
finish;
M = {1,2};
test = example(M);
quit;
In that example I would like to define a module or a macro with which I can execute the module "example" with additional requirement that while executing all local variables (so input, var1, var2, measure) are printed automatically.
Thanks!