|
On Mon, 7 Jun 2004 21:06:51 -0400, Pat Moore <pat.moore@UAA.ALASKA.EDU>
wrote:
>I have a program that creates a large rtf file with embedded formatting.
>I use ods to export the file to my hard drive as an .rtf file. Is there a
>command in SAS to start Word with the resulting file opened? Is there a
>command to close Word so I don't get the "No destinations active" message
>because I forgot to close Word before running an update of the code?
>
>The work sequence would go like this:
>
>1. modify the code to do something different.
>2. run the program
>3. at the end of the run, SAS would run Word with the .rtf file displayed.
>4. maybe move through the file some in Word.
>5. change the code in SAS, and rerun it.
>6. the first step in the SAS program would check to see if Word was still
>open, and if so, close it. Since it will be overwriting the first
>version, it's not necessary to save it.
>
>It would be nice to do the same with Excel and Access.
>
>Any ideas?
>
>Pat Moore
On Mon, 7 Jun 2004 21:06:51 -0400, Pat Moore <pat.moore@UAA.ALASKA.EDU>
wrote:
>I have a program that creates a large rtf file with embedded formatting.
>I use ods to export the file to my hard drive as an .rtf file. Is there a
>command in SAS to start Word with the resulting file opened? Is there a
>command to close Word so I don't get the "No destinations active" message
>because I forgot to close Word before running an update of the code?
>
>The work sequence would go like this:
>
>1. modify the code to do something different.
>2. run the program
>3. at the end of the run, SAS would run Word with the .rtf file displayed.
>4. maybe move through the file some in Word.
>5. change the code in SAS, and rerun it.
>6. the first step in the SAS program would check to see if Word was still
>open, and if so, close it. Since it will be overwriting the first
>version, it's not necessary to save it.
>
>It would be nice to do the same with Excel and Access.
>
>Any ideas?
>
>Pat Moore
after setting
options noxwait noxsync;
try issuing command
x start winword yourfile.rtf
as a thinner layer surfaces faser, for .rtf files you might
find wordpad as good as winword, but quicker
Good Luck
Peter Crawford
|