BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can someone tell me what is wrong with this statement, I'm trying to open Excel through EG?

filename sas2xl dde 'excel|system';

Thanks
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
Check the DDE documentation in the SAS manuals. The DDE application data needs to be a triplet consisting of the word "excel", then name of the sheet, and the location of the data in the sheet. Here is an example form the SAS manual

filename test dde 'Excel|c:\excel\
[Sales.xls]Sales Data!R1C1:R4C2'

If that doesn't work, it's time to call SAS Tech Support.

Doc Muhlbaier
deleted_user
Not applicable
Excel for DDE requires two connections and Doc is quite correct in referring to the syntax needed for sending and retrieving data from a specific spreadsheet.

Unfortunately, what is also needed is an instance of Excel with a system connection so that file open / save and similar functions can be performed. It is this instance that is failing.

Within Enterprise Guide, there is a standard setting that blocks sending system commands or operating system calls to a server. As long as the system command block is in place, SAS cannot send the string to start Excel or anything else.

There are workarounds, and a call to Tech support, or a visit to the website will shed light.

Kind regards

David

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 645 views
  • 0 likes
  • 2 in conversation