I'm trying to export a file to excel and then sent am e-mail with a link to the xls file,
the name of the file contains macros for the date and time, but when I add the time macro, the file created is not recognized as an xls file.
the here is the code :
Clearly you have an imbedded blank character somewhere in your SAS code. Suggest you perform some self-diagnosis by adding the stmt below to generate more SAS log output while SAS is compiling the code: