From: Randy Herbison on 1 Feb 2010 17:39 Hi, Using 9.2 TS Level 2MO, on Win XP Pro, the title() method seems to work correctly. I get TITLE1 & TITLE2 as expected (no blank lines in between). ods listing close; ods pdf file='c:\temp\test.pdf'; ods rtf file='c:\temp\test.rtf'; data _null_; set sashelp.cars end=_last; if _n_=1 then do; declare odsout ShortForm(); ShortForm.title(start: 1, text: 'Yearly Report'); ShortForm.title(start: 2, text: 'Notice to buyers of Products'); ShortForm.table_start(); end; ShortForm.row_start(); ShortForm.format_cell(text: 'Test'); ShortForm.row_end(); if _last then ShortForm.table_end(); run; ods listing; ods pdf close; ods rtf close; I added values for the method's optional START argument so that the 2nd title doesn't overwrite the first one (as TITLE1). I can't explain your results. I would expect your code to define TITLE1 twice. -Randy -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Masoud Pajoh Sent: Monday, February 01, 2010 4:31 PM To: SAS-L(a)LISTSERV.UGA.EDU Subject: ODS OO question I have the following: data _null_; set sales; if _n_=1 then do; declare odsout ShortForm(); ShortForm.title(text:carb12||'Yearly Report'); ShortForm.title(text:carb12||'Notice to buyers of Products' ); end; . . . run; The outputs are a PDF and RTF files. Problem on the first page there is blank line between the titles!! Tiles on all other pages are fine. Why? Or is this: WARNING: Data step interface is experimental in this release. the explanation? I use SAS 9.1.3 SP4 on Windows XP. Thanks, Masoud
|
Pages: 1 Prev: Online SAS(r) Training Schedule: Feb and Mar 2010 Next: Rolling Correlation coefficient |