Close the PDF destination.
The ODS PDF CLOSE statement closes the PDF destination.
ods pdf close;