The SAS Output Delivery System and reporting techniques

ODS Data Step Object: TEXT methods

Reply
N/A
Posts: 0

ODS Data Step Object: TEXT methods

Hi,

I'm trying this simple code but it doesn't work:

ODS LISTING CLOSE;
ODS PDF file="C:\test.pdf";

data _null_ ;
declare odsout obj();
obj.note(data: "test note");
obj.format_text(data: "test format_text");
obj.delete();
run;

ODS PDF CLOSE;
ODS LISTING;

The PDF is not created and the log shows:

399 ODS LISTING CLOSE;
400 ODS PDF file="C:\test.pdf";
NOTE: Writing ODS PDF output to DISK destination "C:\test.pdf", printer "PDF".
401
402 data _null_ ;
403 declare odsout obj();
404 obj.note(data: "test note");
405 obj.format_text(data: "test format_text");
406 obj.delete();
407 run;

WARNING: Data step interface is preproduction in this release.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds


408
409 ODS PDF CLOSE;
NOTE: ODS PDF printed no output.
(This sometimes results from failing to place a RUN statement before the ODS PDF
CLOSE statement.)
410 ODS LISTING;


When I use FORMAT_TEXT in the TABLE methods, it works:

data _null_ ;
declare odsout obj();
obj.table_start();
obj.row_start();
obj.cell_start();
obj.format_text(data: "test format_text");
obj.cell_end();
obj.row_end();
obj.table_end();
obj.delete();
run;


I'm using SAS 9.2 (1M0). Any Idea?

Thanks in advance for your help!
Adrien
Ask a Question
Discussion stats
  • 0 replies
  • 123 views
  • 0 likes
  • 1 in conversation