Wednesday 16 September 2009

NOTE: Debugging Nested Loops in V9.2

I discovered a new DATA statement argument new in V9.2 today. The NESTING argument instructs SAS to print a note to the log at the beginning and end of every DO/END and SELECT/END pairing.

This is jolly handy for debugging recalcitrant DATA steps with unbalanced nesting.

Usage: data newdata / nesting;