Close the PS destination. The ODS PDF CLOSE statement closes the PDF destination.


ods pdf close;