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 (July 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 19 Jul 2006 21:45:46 +0200
Reply-To:   WIELKI Andre <wielki@INED.FR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   WIELKI Andre <wielki@INED.FR>
Subject:   Re: Proc template problem, Help Please!!
Comments:   To: Yu Zhang <zhangyu05@GMAIL.COM>
In-Reply-To:   <200607191710.k6JET6Sd003274@mailgw.cc.uga.edu>
Content-Type:   text/plain; charset=ISO-8859-1; format="flowed"

Yu you are not using your style created by your templare because you must use the option style= in the ods statement!

many variable but you use only 5 in the report!

the sas options must be putted before the ods destination are open with orientation=landscape

the width of the columns can be specified into the proc report code

HTH Andre

Quoting Yu Zhang <zhangyu05@GMAIL.COM>:

> Dear All, > > I have a dataset with many variables (25). record will be splited into > serval lines when I generate report using PROC Report. I tried > options=landscape, problem can not be solved. So I tried using proc > template to reset the page margins (the rtf default left and rightmargins > is 0.25 in). The output is o.k. but the rules except hearder part are > greyed out. when you print it out, only header part has the rules. > > The code i am using is listed at below: Any suggestions ?? > > > Thank you in advance! > > Yu > > > proc template; > define style Styles.Yu; > parent = Styles.RTF; > replace Body from Document / > bottommargin = 0.25in > topmargin = 0.25in > rightmargin = _undef_ > leftmargin = _undef_; > end; > run; > options rightmargin = 0.1in leftmargin = 0.1in; > > ods rtf file='c:/test.rtf'; > proc report data=sashelp.class nowd split='*' style=yu > style(header)={background=white font_size=8.5pt font_face="TimesRoman" > font_weight=bold frame=box} ; > column name sex age height weight; > run; > ods rtf close; >


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