<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ODS HTML Errors - No body file in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718123#M27566</link>
    <description>&lt;P&gt;Can you try the below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error messages below&amp;nbsp;might be written to the SAS&lt;SUP&gt;®&lt;/SUP&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;log when you use certain ODS statements, including the ODS HTML statement and the ODS TAGSETS.EXCELXP statement:&lt;/P&gt;
&lt;DIV&gt;Error: A component of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;c:\users\userid\appdata\local\temp\C:\temp\sastest.html&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is not a directory.&lt;BR /&gt;Error: No body file.&amp;nbsp;HTML output will not be created.&lt;/DIV&gt;
&lt;P&gt;The errors occur when additional directory information is incorrectly appended by SAS in front of the directory path that you specify in your code. For example, the errors above might occur with the following ODS HTML statement:&lt;/P&gt;
&lt;DIV&gt;ods html file='c:\temp\sastest.html';&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;To circumvent the problem, modify the syntax of the ODS statement to use both the PATH and FILE options instead of using only the FILE option.&amp;nbsp; For example, the ODS HTML statement above should now look like this:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;ods&amp;nbsp;html&amp;nbsp;path='c:\temp' (url=none) file='sastest.html';&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; &amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Make sure that the PATH&amp;nbsp;option points to the directory to which you want to write the ODS output and that the FILE&amp;nbsp;option specifies only the name of the HTML file that you want to create.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 05:10:36 GMT</pubDate>
    <dc:creator>qoit</dc:creator>
    <dc:date>2021-02-10T05:10:36Z</dc:date>
    <item>
      <title>ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718117#M27563</link>
      <description>&lt;P&gt;Hello! I am very new to SAS Programming and it has been a struggle to understand ODS. I added my code and I also added a picture of all the errors I have gotten. the frustrating thing is that it is straight from the practice guide I got. I realize this may be super simple but I think maybe I am just missing something trivial?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS 2021-02-09 9_41_13 PM.png" style="width: 934px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54536iB37FAEFD1406DEBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS 2021-02-09 9_41_13 PM.png" alt="SAS 2021-02-09 9_41_13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 04:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718117#M27563</guid>
      <dc:creator>Riya2</dc:creator>
      <dc:date>2021-02-10T04:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718120#M27564</link>
      <description>&lt;P&gt;Can you try using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS LISTING CLOSE;
ODS HTML FILE="mypath.html";


proc print data=sashelp.class;
run;

ODS LISTING;
ODS HTML CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2021 04:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718120#M27564</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-10T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718121#M27565</link>
      <description>Yes. I put it in and now that error I am given is "ERROR: A component of C:\Users\riyaz\AppData\Local\Temp\SAS Temporary Files\_TD14948_DESKTOP-OAN97GB_\C:\Users\riyaz\Documents\My SAS Files\cert\data.html is not a directory.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Feb 2021 05:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718121#M27565</guid>
      <dc:creator>Riya2</dc:creator>
      <dc:date>2021-02-10T05:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718123#M27566</link>
      <description>&lt;P&gt;Can you try the below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error messages below&amp;nbsp;might be written to the SAS&lt;SUP&gt;®&lt;/SUP&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;log when you use certain ODS statements, including the ODS HTML statement and the ODS TAGSETS.EXCELXP statement:&lt;/P&gt;
&lt;DIV&gt;Error: A component of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;c:\users\userid\appdata\local\temp\C:\temp\sastest.html&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is not a directory.&lt;BR /&gt;Error: No body file.&amp;nbsp;HTML output will not be created.&lt;/DIV&gt;
&lt;P&gt;The errors occur when additional directory information is incorrectly appended by SAS in front of the directory path that you specify in your code. For example, the errors above might occur with the following ODS HTML statement:&lt;/P&gt;
&lt;DIV&gt;ods html file='c:\temp\sastest.html';&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;To circumvent the problem, modify the syntax of the ODS statement to use both the PATH and FILE options instead of using only the FILE option.&amp;nbsp; For example, the ODS HTML statement above should now look like this:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;ods&amp;nbsp;html&amp;nbsp;path='c:\temp' (url=none) file='sastest.html';&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; &amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Make sure that the PATH&amp;nbsp;option points to the directory to which you want to write the ODS output and that the FILE&amp;nbsp;option specifies only the name of the HTML file that you want to create.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 05:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718123#M27566</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-10T05:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718124#M27567</link>
      <description>&lt;P&gt;Ok. Yes, that worked. However, now I am a bit confused as to how I add in the contents and frame under this. The problem I am facing now is that when I use path and file in ODS HTML at the beginning, it says that the physical file does not exist.No body file. Then when I use body='mypath' I get the other error which is that&amp;nbsp;a component of my path is not in the directory and there is no body file therefore no HTML output is created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry for so many questions I am VERY new to this. Thank you for your help, very much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 06:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718124#M27567</guid>
      <dc:creator>Riya2</dc:creator>
      <dc:date>2021-02-10T06:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Errors - No body file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718160#M27569</link>
      <description>&lt;P&gt;Try adding the path= option in the first ODS statement. This contain the path,&lt;/P&gt;
&lt;P&gt;The other options contain the file names.&lt;/P&gt;
&lt;P&gt;Because you haven't specified the path, SAS adds the default path to the "filenames" you gave, generating the error message you can see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 09:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-HTML-Errors-No-body-file/m-p/718160#M27569</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-10T09:09:24Z</dc:date>
    </item>
  </channel>
</rss>

