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 (October 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 17 Oct 2005 15:44:58 +0200
Reply-To:   Andre Wielki <wielki@INED.FR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Andre Wielki <wielki@INED.FR>
Subject:   Re: Another question about Proc Template
Comments:   To: "Wright, Wendi" <wwright@ETS.ORG>
In-Reply-To:   <AEB5889D5134C948B6B4D0ACEEB6C145C690E1@rosnt115.etslan.org>
Content-Type:   text/plain; charset=windows-1252; format=flowed

In v8 there was also a template solution like in the following test They have limits HTH Andre

proc template; define style my.test;parent=styles.default; style table from table / tagattr='align="left" style="position:relative;top:1.5 cm"'; style body from body /pagebreakhtml=_undef_; end;run; proc template; define style my.test1; parent=styles.default; style table from table /tagattr='align="right"'; end;run; ods listing close ;title ‘ ‘; Ods html body="d:\ods\temp.htm"(url=none) style=my.test; Proc print data=sasuser.crime(obs=2); var state murder;run; ods html style=my.test1; Proc print data=sasuser.fitness(obs=2); var runtime age weight;Run ; Ods html close ;

Wright, Wendi a écrit : > V8 does not have this option. You will need v9 to get it to work. > > Here is another option that does work in V8 using Proc report. Proc > report has an option that you can use called panels= that you can use to > get multiple columns. You have to play with the spacing a bit to get it > the way you want it, but it will probably work for you. Here is an > example of it creating 4 columns on one page. > > options nodate nocenter linesize=120 pagesize=&pgesize; > proc report data=score panels=4 spacing=2 pspace=2 nowd headline; > column raw conv; > define raw/ "&msg" width=6 right; > define conv/ ' CONVERTED SCORE (CS)' width=10 center; > run; > > Wendi > > ________________________________ > > From: Nancy Li [mailto:nancy_li66@yahoo.com] > Sent: Friday, October 14, 2005 3:32 PM > To: Wright, Wendi > Subject: RE: Another question about Proc Template > > > Thank you very much for your email. Yes I used Proc Template to set up a > table template, create a tabular report, and output to a rtf file. I > tried using COLUMNS=2 in my code, but it doesn't work. I'm using v8 in > my SAS. I'm not sure whether this is the reason. > > Thanks! > > Nancy > > "Wright, Wendi" <wwright@ets.org> wrote: > > I suppose you probably could do it using Proc Template, but I > have done > the same using one of the options on an ODS RTF statement. I am > also > including in the code below how to change the orientation if you > prefer > to use landscape rather than portrait. Since I am not sure what > procedure you are using, I am assuming you can use Proc freq. > > Options orientation=landscape; > ODS RTF columns=2 file='c:\.....'; > Proc freq data=one; > tables x1 x2; > Run; > Ods rtf close; > > > > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of > Nancy Li > Sent: Wednesday, October 12, 2005 4:22 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Another question about Proc Template > > I was wondering whether I could create two tables in a > horizontal way > (one next to the other in a row on the same page) using Proc > Template? > Does anyone know how to set up this template? > Thanks in advance! > Nancy > > > --------------------------------- > Yahoo! Music Unlimited - Access over 1 million songs. Try it > free. > > > ________________________________ > > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yah > oo.com/unlimited/> >

-- Andre Wielki INED (Institut National d'Etudes Démographiques) 133 Boulevard Davout 75980 Paris Cedex 20 33 (0) 1 56 06 21 54 FRANCE


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