While in SAS® Studio, file=
can be used to specify both path and name of your output file, SAS® Windowing Environement needs two distinct options: path=
and file=
. Here is an example.
The Problem
SAS Windowing Environment
ERROR: A component of C:\Users\... is not a directory.
ERROR: No body file. HTML output will not be created.
![](https://xxformat.com/wp-content/uploads/2023/02/sas_error_message_a_component_is_not_a_directory.jpg)
Original Code
ods html file = "C:/Users/xxformat/Documents/demo.html" ;
proc print data=sashelp.class;
run;
ods html close;
Updated Code
ods html path = 'C:/Users/xxformat/Documents/' file='demo.html';
proc print data=sashelp.class;
run;
ods html close;FFFFDB