Directory Listings in SAS

There are these utilities that you seem to come across all the time, but I am yet to come across a function or procedure to simply list the contents of a directory. Among the different approaches, let’s look at a simple approach using a single DATA step.

Where am I now?

A simple SAS macro library is usually quick and easy to create but the effort of debugging or just simple to unravel where in a chain of macros an issue occurs can be frustrating, unless SAS can tell you where you are and how you got there, which it can.