Prev: font question
Next: Macro error help
From: Randy Herbison on 6 Nov 2009 16:13 Here's an example that first uses the ODS Report Writing Interface (preproduction as of 9.2 Phase 2) to write the text and then writes it again using ODS PDF TEXT statements. Using 9.2 Phase 2, the results seem to be the same. -Randy ods listing close; ods pdf file='c:\temp\test.pdf'; data _null_; dcl odsout ods(); input text $80.; ods.format_text(text: text); call execute('ods pdf text="' || trim(text) || '";'); datalines4; Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas congue sagittis convallis. Phasellus ultricies velit suscipit eros sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat. Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec libero. Pellentesque tellus est, faucibus et pharetra malesuada, faucibus eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a. Cras tempor consectetur congue. Proin ut purus ipsum. Integer sagittis dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut nec lectus vel augue posuere interdum. ;;;; options nocenter; ods pdf startpage=no; proc print data=sashelp.class; run; ods listing; ods pdf close; -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Andrew Z. Sent: Friday, November 06, 2009 2:31 PM To: SAS-L(a)LISTSERV.UGA.EDU Subject: Writing a paragraph of text in ODS I am looking to one page of brief text at the beginning of PDF report to introduce the reader to the tables and graphs which follow. The introduction is too long for regular SAS footnotes, so is there a better option than the mess below? :) Andrew / *--------------------------------------------------------------------------- */ data lines; input line & $80.; datalines; Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas congue sagittis convallis. Phasellus ultricies velit suscipit eros sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat. Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec libero. Pellentesque tellus est, faucibus et pharetra malesuada, faucibus eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a. Cras tempor consectetur congue. Proin ut purus ipsum. Integer sagittis dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut nec lectus vel augue posuere interdum. ; ods pdf; /* introduction */ proc print data=lines NOOBS ;run; /* tables and charts would go here */ ods pdf close; |