Hi,
I can't seem to get a SAS dataset working with an ODS HTML BODY=
Any idea why this doesn't work please but does on tabulates?
Thanks
BODY= argument is expecting a filename not a data set name.
ODS HTML is the output destination. To output to the destination you use PROC REPORT/PRINT/TABULATE.
ODS HTML statement controls the file properties.
ods html file='/folders/myfolders/demo.html' style=meadow;
proc print data=sashelp.class;
run;
ods html close;
This "I can't seem to get a SAS dataset working with an ODS HTML BODY=" does not make any sense. You generate html output the same way you generate any output, with the use of an output procedure like proc print, report, tabulate etc. A SAS dataset is not an output procedure, unless you put in output routines like put.
BODY= argument is expecting a filename not a data set name.
ODS HTML is the output destination. To output to the destination you use PROC REPORT/PRINT/TABULATE.
ODS HTML statement controls the file properties.
ods html file='/folders/myfolders/demo.html' style=meadow;
proc print data=sashelp.class;
run;
ods html close;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.