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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 3 Jan 2005 16:15:28 -0500
Reply-To:     Ben <benpub7@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ben <benpub7@YAHOO.COM>
Subject:      Re: Help on sas/ods raw rtf file

Jack, it is great. Thanks.

On Mon, 3 Jan 2005 13:37:28 -0700, Jack Hamilton <JackHamilton@FIRSTHEALTH.COM> wrote:

>Generally, if you want something in a different row, you put it in a >different observation. > >If what you want is for the line to be split into two lines, you could >use: > >===== (tested in 9.1.3) >data x; > text1='hello'; > text2='everyone'; > output; >run; > >ods listing close; >ods rtf file='d:\temp\test.rtf'; >ods escapechar='^'; > >proc report data=x nowindows missing; > column text1 text2 text; > define text1-text2 / noprint; > define text / computed; > compute text / character length=200; > text = '^S={font_face=courier font_weight=bold}' || text1 || ' >^n^S={font_face=times font_style=italic}' || text2; > endcomp; >run; > >ods rtf close; >ods listing; >===== > >Note the addition of the ^n directive. > >I don't know which, if any, of these things will work with HTML or PDF. > > > > >-- >JackHamilton@FirstHealth.com >Manager, Technical Development >Metrics Department, First Health >West Sacramento, California USA > >Coelum, non animum mutant, qui trans mare currunt. > > >>>> "Ben" <benpub7@YAHOO.COM> 01/03/2005 12:28 PM >>> >It is very good, can 'in line style' put those two pieces of texts in >different rows? > >many thanks > > > >On Mon, 3 Jan 2005 13:12:01 -0700, Jack Hamilton ><JackHamilton@FIRSTHEALTH.COM> wrote: > >>Why not just do it in ODS rather than RTF? Then you don't have to >learn >>RTF commands in addition to ODS. >> >>===== (tested in 9.1.3) >>data x; >> text1='hello'; >> text2='everyone'; >> output; >>run; >> >>ods listing close; >>ods rtf file='d:\temp\test.rtf'; >>ods escapechar='^'; >> >>proc report data=x nowindows missing; >> column text1 text2 text; >> define text1-text2 / noprint; >> define text / computed; >> compute text / character length=200; >> text = '^S={font_face=courier font_weight=bold}' || text1 || ' >>^S={font_face=times font_style=italic}' || text2; >> endcomp; >>run; >> >>ods rtf close; >>ods listing; >>===== >> >> >>-- >>JackHamilton@FirstHealth.com >>Manager, Technical Development >>Metrics Department, First Health >>West Sacramento, California USA >> >>Coelum, non animum mutant, qui trans mare currunt. >> >> >>>>> "Ben" <benpub7@YAHOO.COM> 01/03/2005 11:35 AM >>> >>anything wrong in following code, but I don't know where. >> >>what if I want to text1 and text2 have different font? >> >>Many Thanks. >> >>**************************************************; >>data x; >>text1='hello'; >> >>text2='everyone'; >> >>text='^R/RTF"\b0"'||text1||' ^R/RTF"\b"'||text2||"'"; >> >>run; >> >>ods rtf file='test.rtf'; >> >> >>ods rtf close; >>ODS EscapeChar '^' ; >>ods rtf file='test.rtf'; >> >>proc report data=x nowd; >>column text; >>define text/display; >>run; >> >>ods rtf close; >> >> >>"MMS <firsthealth.com>" made the following annotations. >>------------------------------------------------------------------------- - >---- >>This message, including any attachments, is intended solely for the >use >>of the named recipient(s) and may contain confidential and/or >>privileged information. Any unauthorized review, use, disclosure or >>distribution of this communication(s) is expressly prohibited. >>If you are not the intended recipient, please contact the sender by >>reply e-mail and destroy any and all copies of the original message. >>Thank you. >> > ========================================================================= >==


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