ERROR: A component of… is not a directory. No body file. HTML output will not be created.

Blog, Debugging, Environment, ERROR, Programming, SAS Windowing Environment

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.

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
Share this