Tell us more about your SAS operating environment (OS, whether SAS is installed locally or on a remote server), and your SAS version as well. And, the recommendation by Doc@Duke is a good one, possibly even providing control to only delete the SAS-generated log file when a good completion occurs, as you choose to determine.
Consider that you may want to review the SAS log output, so it is possible to generate the SAS log to a file (with PRINTTO), and then if your processing is satisfactory to your liking, then run a post-processing DATA step to delete the file you are using to capture the SAS log, rather than just writing it to a dummy destination. Explore using a SAS DATA step with CALL functions FILEEXIST, FILENAME, and FDELETE, in order to accomplish the special-handling of your generated log file.
The link below is associated with the SAS companion for Windows platform documentation - other similar guides are provided for your operating environment.