Joe, I was surprised by your code, as it is completely new for me! but when i tried it , i encounter difficulties even after adding a data _null_; in the head (i use 9.3.0 under windows) What is the correction, just to see the final production. Andre see further: 112 options nonumber nodate nocenter; 113 ods listing close; 114 ods pdf file="d\notes\test\WTable.pdf" notoc; NOTE: Writing ODS PDF output to DISK destination "d:\My SAS Files\9.3\d\notes\test\WTable.pdf", printer "PDF". 115 data _null_; 116 declare odsout summ(); 117 summ.title(text:"Wendy's Desired Table of Code Frequencies " ||" 117! %sysfunc(today(),mmddyy10.)"); 118 summ.layout_gridded(columns:1); 119 summ.region(); 120 summ.table_start(); 121 summ.row_start(); 122 summ.format_cell(inhibit:"TLR", text: "CODE", 122! overrides:"cellwidth=4cm just=center"); 123 summ.format_cell(inhibit:"TLR", text: "COUNTS", 123! overrides:"cellwidth=4cm just=center"); 124 summ.format_cell(inhibit:"TLR", text: "NOBS", 124! overrides:"cellwidth=4cm just=center"); 125 summ.format_cell(inhibit:"TLR", text: "PERCENTS", 125! overrides:"cellwidth=4cm just=center"); 126 summ.row_end(); 127 summ.table_end(); 128 summ.table_start(); 129 summ.line(); 130 do while(hicod.next() eq 0); ---------- 557 ERROR: DATA STEP Component Object failure. Aborted during the COMPILATION phase. ERROR 557-185: Variable hicod is not an object. NOTE: The SAS System stopped processing this step because of errors. NOTE: L'étape DATA used (Total process time): real time 0.08 secondes cpu time 0.03 secondes 131 summ.row_start(); 132 summ.format_cell(inhibit:"BTLR", text: code, 132! overrides:"cellwidth=4cm just=center"); 133 summ.format_cell(inhibit:"BTLR", text: codecount, 133! overrides:"cellwidth=4cm just=center"); 134 summ.format_cell(inhibit:"BTLR", text: datasize, 134! overrides:"cellwidth=4cm just=center"); 135 summ.format_cell(inhibit:"BTLR", text: percents, 135! overrides:"cellwidth=4cm just=center"); 136 summ.row_end(); 137 end; 138 summ.table_end(); 139 summ.line(); 140 summ.region(); 141 summ.layout_end(); 142 stop; 143 run; 144 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.)
... View more