Hi Rick,
Thank you for this informative post. When I tried the macro, I got the Error message below, do you have any suggestions on how to address this?
NOTE: IML Ready
NOTE: Module SHIFT defined.
ERROR: Matrix out has not been set to a value.

statement : CREATE at line 71 column 1
ERROR: No data set is currently open for output.