In reply to Patrick Inskeep.

Patrick, thank you for your comment. I agree, if there are datasets with the same name in both libraries, it makes perfect sense to call this macro for each library individually. It won't significantly slow down the processing as the total number of tables processed stays the same. The "bonus" goal was to illustrate the library concatenation technique. Another way to approach processing multiple libraries with one macro call would be to modify the macro to allow several libref words in its first parameter value, then parse it and loop through all of them sequentially.

However, in general, it is not a good data management practice to have project-related same-named datasets in different libraries, even though operating system allows for such naming.