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 (April 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 20 Apr 2007 06:55:37 -0700
Reply-To:     Alex Pavluck <apavluck@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Alex Pavluck <apavluck@GMAIL.COM>
Organization: http://groups.google.com
Subject:      ODS RTF help needed
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

I am trying to make a simple table that will only have a table top boarder, a headline, and a table bottom boarder. I have been able to do this but the thing I can't get is to use RTF text to place a title directly above my table and a footnote directly below. Also, I can't seem to turn off the RTF header and footer sections. Can anyone give me some advice or point me to a good resource.

Here is my current template code: proc template; define style Custom; parent = Styles.minimal;

/*The next section of code sets up a list of font names and assigns them characteristics.*/ replace fonts / 'TitleFont' = ("Times Roman",15pt,Bold Italic) /* Titles from TITLE statements */ 'TitleFont2' = ("Times Roman",12pt,Bold Italic) /* Proc titles ("The XX Procedure")*/ 'StrongFont' = ("Times Roman",12pt,Bold) 'EmphasisFont' = ("Times Roman",12pt,Italic) 'headingEmphasisFont' = ("Times Roman",12pt,Bold Italic) 'headingFont' = ("Times Roman",12pt,Bold) /* Table column and row headings */ 'docFont' = ("Times Roman",10pt) /* Data in table cells */ 'footFont' = ("Times Roman",9pt) /* Footnotes from FOOTNOTE statements */ 'FixedEmphasisFont' = ("Times Roman",10pt) 'FixedStrongFont' = ("Times Roman",10pt) 'FixedHeadingFont' = ("Times Roman",10pt) 'BatchFixedFont' = ("Times Roman",10pt) 'FixedFont' = ("Times Roman",10pt); replace Table from Output / frame = hsides /* outside borders: void, box, above/below, vsides/ hsides, lhs/rhs */ rules = groups /* internal borders: none, all, cols, rows, groups */ cellpadding = 3pt /* the space between table cell contents and the cell border */ cellspacing = 0pt /* the space between table cells, allows background to show */ borderwidth = 1pt /* the width of the borders and rules */; replace Body from Document / bottommargin = 0.75in topmargin = 0.75in rightmargin = 0.75in leftmargin = 0.75in; end; run;

title; options orientation=portrait nodate center pageno=1; ODS RTF FILE="S:\USER\APAVLUCK\test.rtf" style=Custom; ods rtf text="{\trowd\trqc\cellx11520\fs22\intbl\b\qc{

&titl.

\cell} {\row}\pard}"; proc report data=WORK.TABLE2F NOWD HEADSKIP HEADLINE split='*'; columns EFFECT LABEL CASECONTROL RATIO; define EFFECT/group '' order=data width=20; define LABEL/display '' order=data width=20; define CASECONTROL/display 'Case#/Control#' order=data width=17; define RATIO/display 'OR (95% CI)' order=data width=10; define PROBCHISQ/display 'Wald' format=comma6.2 order=data width=10; break after EFFECT/suppress summarize OL; title 'YOUR TITLE HERE'; run; ods rtf text="{\trowd\trqc\cellx11520\fs22\intbl\qc{

&footnotez.

\cell} {\row}\pard}"; ODS RTF CLOSE;


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