One easy thing to check is if you completed the document. If you create a file with ODS PDF, or other ods destination statement, SAS is still using the file until an ODS PDF CLOSE; ,or similar destination close, is submitted. The download may not want to try to use a file that is still 'open' by SAS.