BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a SAS Macro that sends commands to Word that reads a SAS output file, Formats, Prints and Saves it.

It uses DDE to link to Word using the following statement:
filename wordcmd dde "winword|system";

This worked fine when our environment was Word 2003.

We recently installed Word 2007 and now I'm getting the following message:
ERROR: Physical file does not exist, winword|system

Can anyone help me modify the statement so that it works in Word 2007?
1 REPLY 1
deleted_user
Not applicable
I am also facing the same issue. SAS suggested a hot fix, but that too didnt work.

240 filename testit dde 'winword|"c:\temp\testing.doc"
241 !MARK' notab;
242
243 data _null_;
244 file testit;
245 put 'This is a test.';
246 run;

ERROR: Physical file does not exist, winword|"c:\temp\testing.doc" !MARK.

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!

Discussion stats
  • 1 reply
  • 841 views
  • 0 likes
  • 1 in conversation