I have developed a SAS process in Enterprise Guide 7.1 that sends e-mails daily (if need be).
The way it works is this: [external program] generates a file which specifies who needs to be emailed and the subject matter . My sas process then looks like this: 1. import this file. 2. manipulate this file. 3. generate emails based on contents of manipulated file.
The problem is, everything crashes if the original file imported in step 1 is empty. Is there a way to run the import, check if the dataset is empty, and then if it is terminate the entire sas process tree?
Thank you in advance, I've been searching but to no avail.