LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 4 Jul 2010 08:12:06 -0700
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: Exporting from ODS in SAS to Word
Content-Type:   text/plain; charset=ISO-8859-1

Siddharth,

Take a look at: http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/titlepage.htm

As long as the two files aren't already open, the code I suggested creates (or overwrites) the two files (one .rtf and one .html) specified in the statements.

Art ------------- On Jul 4, 9:29 am, siddharth khanna <siddharthkhanna...@googlemail.com> wrote: > On Jul 4, 5:32 pm, Arthur Tabachneck <art...@netscape.net> wrote: > > > > > > > Siddharth, > > > You just have to specify the ods statements correctly. In short, take > > a look at the documentation. The following produces both an rtf and > > an html version. You can probably use either for Word. > > > data review1; > > set sashelp.class (rename= > > (age=z height=x weight=y)); > > run; > > > ods rtf file='c:\test.rtf'; > > title 'Stepwise Regression method'; > > proc reg data=review1 outest = est4; > > model Z = X Y / SELECTION = rsquare cp aic sbc b > > best=3; > > RUN; > > quit; > > ods rtf close; > > > ods html file='c:\test.html'; > > title 'Stepwise Regression method'; > > proc reg data=review1 outest = est4; > > model Z = X Y / SELECTION = rsquare cp aic sbc b > > best=3; > > RUN; > > quit; > > ods html close; > > > Art > > -------------- > > On Jul 4, 5:27 am, siddharth khanna > > > <siddharthkhanna...@googlemail.com> wrote: > > > Hi, > > > > I use the code :- > > > > ods html on; > > > title 'Stepwise Regression method'; > > > proc reg data=review1 outest = est4; > > > model Z = X Y / SELECTION = rsquare cp aic sbc b best=3; > > > RUN; > > > quit; > > > ods html close; > > > > i want to open the table that i get in the output data set 'est4' > > > into Word . I get the log as - > > > > 98 ods html close; > > > 99 ods html on; > > > -- > > > 22 > > > 76 > > > ERROR 22-322: Syntax error, expecting one of the following: EXCLUDE, > > > SELECT. > > > ERROR 76-322: Syntax error, statement will be ignored. > > > > Kindly help what I'm mistaken in? > > > > Kindest Regards, > > > Siddharth > > Hi, thanks very much. Could you suggest me what actually does the > syntax ods html file='c:\test.rtf'; and ods rtf close; does as a > new .rtf file gets created in my user in disk C > > kindest regards, > Sid- Hide quoted text - > > - Show quoted text -


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