DATA Step, Macro, Functions and more

ODMS HTML - SAS Dataset

Accepted Solution Solved
Reply
Contributor
Posts: 42
Accepted Solution

ODMS HTML - SAS Dataset

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


Accepted Solutions
Solution
‎02-27-2018 04:58 AM
Super User
Posts: 22,874

Re: ODMS HTML - SAS Dataset

Posted in reply to Brandon16

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;

http://documentation.sas.com/?docsetId=odsug&docsetTarget=n0f5s1zezthhbrn1u0z71mh3wx64a.htm&docsetVe...

 

View solution in original post


All Replies
Super User
Super User
Posts: 9,227

Re: ODMS HTML - SAS Dataset

Posted in reply to Brandon16

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.

Solution
‎02-27-2018 04:58 AM
Super User
Posts: 22,874

Re: ODMS HTML - SAS Dataset

Posted in reply to Brandon16

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;

http://documentation.sas.com/?docsetId=odsug&docsetTarget=n0f5s1zezthhbrn1u0z71mh3wx64a.htm&docsetVe...

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 98 views
  • 0 likes
  • 3 in conversation