4 weeks ago
I'm trying to read the first 2 pages of multiple rtf files and put them into 1 document. Everything I have found says I need to use dde.
I tried the following program (I've simplified it as much as possible).
%LET RC=%SYSFUNC(SYSTEM(START WINWORD));
FILENAME WORD_F DDE 'WINWORD|SYSTEM';
PUT '[FILEOPEN .NAME = "D:\tmp\tmp.rtf"]';
This is as simple as I could get it yet I am still getting this error:
NOTE: The file WORD_F is:
ERROR: DDE session not ready.
FATAL: Unrecoverable I/O error detected in the execution of the DATA step
program. Aborted during the EXECUTION phase.
Any ideas on what is causing this error or is there a better way than dde?