У меня есть данные A, затем я выполню некоторый код и напечатаю отчет в формате PDF.
ods pdf file="path/name.pdf";
if table A doesn't have any obs, then print the statement "No observations" to the final pdf report,
else if table has obs, then print the statement "here is the table A" to the final pdf report.
proc print data =TableA;run;
ods pdf close;