01-25-2014 05:00 AM
DDE doesn't work in SAS workspace servers or stored process servers (often accessed with SAS Enterprise Guide). Chris Hemedinger wrote a great blog post about the ways to export from SAS to Excel files which may help provide some alternative methods... You may also find the comments helpful... How do I export from SAS to Excel files: Let me count the ways - The SAS Dummy
The ability to use a X command depends on the configuration your SAS Administrator has set. You may find this blog post by Paul Homes useful NOXCMD: NO eXternal CoMmanDs! - platformadmin.com
01-25-2014 10:04 AM
Thanks for the reply but my requirement is not to read excel data but invoke VBA macro using EG.
In base sas we can use filename with DDE engine and then use put RUN statement to run vba macro.
But this can not be done in EG as DDE is not supported.
01-25-2014 12:32 PM
I understand... and that's right DDE is not a technology that is supported in EG. So depending on what your VBA code does, another technique such as the excel libname engine may be the approach to take.
01-25-2014 03:41 PM
Depending on what it is you're trying to do, you might be able to use a PowerShell script. I've got several examples of SAS + PowerShell here:
For this to work you would still need XCMD privileges. My examples don't include Excel automation, but those are easy to find with a web search.