@commitsudoku wrote: Yes, I had put the ampersand before the i; I just forgot it in my post. This is exactly what I needed though ; "tabulate_&i..xlsx". I just didn't know I had to put two dots. It now works like a charm, thank you ! As for the "it didn't work", like I said ; SAS generated 3 corrupt files that I couldn't open with any software.
That "corrupted" is something reported OUTSIDE of SAS, not in SAS.
I will be that if you still have one of those files around and rename the file so that it has the dot before xlsx that the file opens just fine.
Unfortunately the likely operating system without a the clear delineation of the EXTENSION in the file name does not know what program to even attempt to open the file by default so may do that. Excel and other will also look at extensions and make assumptions about file type and generate different messages depending on environment.
... View more