Implementing functionality that enables functions to traverse a directory hierarchy is
difficult if you use the DATA step or macros. With the DATA step and macro code
recursion or pseudo-recursion is not easy to code. This section describes how to develop
a routine named DIR_ENTRIES that fills an array with the full pathname of all of the
files in a directory hierarchy. This example shows the similarity between PROC FCMP
and DATA step syntax and underscores how PROC FCMP routines simplify a program
and produce independent, reusable code. DIR_ENTRIES uses as input the following
parameters: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.