You'll need macro logic. The easiest is to pipe it to a table and then check if the table is empty. If so, don't do anything and if it has records you can then print it using PROC PRINT.
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!