Date: Thu, 3 Dec 1998 09:59:54 -0500
Reply-To: "Ward, David" <DWard@DAS-INTERNATIONAL.NET>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Ward, David" <DWard@DAS-INTERNATIONAL.NET>
Subject: Re: TEST IF WORD OR EXCEL IS OPEN?
Content-Type: text/plain
Abdu,
if the application can receive DDE commands (i.e. excel|system or
winword|system), try creating a filename like "filename word dde
'winword|system';" and submitting the following code:
data _null_;
file word;
put '[Maximize]';
run;
If word is open the data step should run correctly (&syserr=0). If not,
Word is either not running or is unable to receive commands.
D. Ward
> ----------
> From:
> abdu.elnagheeb@nationsbank.com[SMTP:abdu.elnagheeb@NATIONSBANK.COM]
> Sent: Wednesday, December 02, 1998 2:36 PM
> Subject: TEST IF WORD OR EXCEL IS OPEN?
>
> Hello all,
>
> How can I test if Word/Excel (or any other application) is open from
> within SAS?
> Thanks for any help.
>
> abdu
>
|