LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 10 Feb 2010 14:44:43 -0500
Reply-To:     Ya Huang <ya.huang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ya Huang <ya.huang@AMYLIN.COM>
Subject:      Re: ODS data step object

It seems this only happens for format_text method, table method is OK:

1 ods listing close; 2 ods pdf file="c:\temp\junk.pdf"; NOTE: Writing ODS PDF output to DISK destination "c:\temp\junk.pdf", printer "PDF". 3 4 data _null_; 5 set sashelp.class end=eof; 6 if _n_=1 then do; 7 dcl odsout obj(); 8 obj.table_start(); 9 end; 10 obj.row_start(); 11 obj.format_cell(data: name); 12 obj.format_cell(data: weight); 13 obj.format_cell(data: age); 14 obj.row_end(); 15 if eof then do; 16 obj.table_end(); 17 end; 18 run;

WARNING: Data step interface is preproduction in this release. NOTE: There were 19 observations read from the data set SASHELP.CLASS. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds

19 ods _all_ close; NOTE: ODS PDF printed 1 page to c:\temp\junk.pdf.

On Wed, 10 Feb 2010 13:53:50 -0500, Ya Huang <ya.huang@AMYLIN.COM> wrote:

>Hi there, > >Just started to learn ODS data step object, here is my first try >and I got this weird note message: > > >1 ods pdf file="c:\temp\junk.pdf"; >NOTE: Writing ODS PDF output to DISK destination "c:\temp\junk.pdf", >printer "PDF". >2 >3 data _null_; >4 set sashelp.class; >5 if _n_ = 1 then do; >6 declare odsout obj(); >7 obj.format_text(data: "bla .. bla.."); >8 end; >9 obj.format_text(data: name); >10 ;run; > >WARNING: Data step interface is preproduction in this release. >NOTE: There were 19 observations read from the data set SASHELP.CLASS. >NOTE: DATA statement used (Total process time): > real time 0.03 seconds > cpu time 0.00 seconds > > >11 >12 ods _all_ close; >NOTE: ODS PDF printed no output. > (This sometimes results from failing to place a RUN statement before >the ODS PDF CLOSE > statement.) > > >Clearly, I have run statement before ods close, I even have an extra ';' >before the run. Anything obvious I'm missing (not obvious to me :-)? > >Thanks > >Ya


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