LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 8 Jun 2004 10:16:10 -0400
Reply-To:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Subject:   Re: Starting Word from SAS

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


Back to: Top of message | Previous page | Main SAS-L page