Greetings,
I hope you can help me with a problem i can't figure out. I need to create a PDF report in SAS 9.4. The report includes just one table, with a very complex header, so I used RWI (data _NULL_) to create it.
Now I need to replicate the table on another PDF report, so I thought it would have been a good idea to save the table as an ODS DOCUMENT so to use PROC DOCUMENT/REPLAY to insert the table on both reports.
Unfortunately, when I try to load the ODS DOCUMENT, I get an empty PDF. It seems that output created via the RWI cannot be saved as on ODS DOCUMENT.
Any idea?
This is a simplified version of my code:
* Program number 1: to create the ODS DOCUMENT object M05_tab;
ODS _all_ CLOSE;
ods document name=DOCUMS.M05_TAB(WRITE);
data _NULL_;
set work.M05_DATI_REP end=done;
if _n_ eq 1 then do;
declare odsout t();
t.table_start();
t.head_start();
t.row_start();
t.format_cell(...);
t.format_cell(...);
.....
run;
ods document close;
*program number 2: to use the ODS DOCUMENT Object;
ods _all_ close;
ods pdf file="filename.pdf" style=SasWeb Startpage = off NOTOC;
ods layout gridded columns=1;
PROC DOCUMENT NAME=DOCUMS.M05_TAB;
REPLAY;
QUIT;
ODS LAYOUT END;
Thank You very much for your time and help
Max
Thank You anyway...
I wrote an email to the referee for the RWI and I got the answer: as a matter of fact, RWI cannot be used with proc document
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.