Hi. Nice posting.

If anyone would like to read a classic paper about a similar topic, take a look at

"The SAS Supervisor"

http://www.sascommunity.org/wiki/The_SAS_Supervisor

It is the annotated, SAS Community version of a paper given at NESUG in 1988 ...