I created the following macro. Proc power returns table pw_cout containing column Power. The data _null_ step assigns the val
Proc power
pw_cout
Power
data _null_
You can invoke a macro which calls procedures, etc. (like the example) from within a datastep using call execute(), but it can get a bit messy and difficult to debug.