<?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 Excel Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439324#M109617</link>
    <description>&lt;P&gt;I get this error message when running with that code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'body=&lt;BR /&gt;___&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;16 ! 'KTY.HTML'&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR, ARCHIVE, ATTRIBUTES, BASE,&lt;BR /&gt;BODY, CHARSET, CLOSE, CODE, CONTENTS, CSS, CSSSTYLE, ENCODING, FILE, FRAME, GFOOTNOTE,&lt;BR /&gt;GPATH, GTITLE, HEADTEXT, IMAGE_DPI, LAYOUT, METATEXT, NEWFILE, NOGFOOTNOTE, NOGTITLE,&lt;BR /&gt;OPTIONS, PACKAGE, PAGE, PARAMETERS, PATH, RECORD_SEPARATOR, RENDER, STYLE, STYLESHEET,&lt;BR /&gt;TEXT, TRANTAB.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 15:33:56 GMT</pubDate>
    <dc:creator>Brandon16</dc:creator>
    <dc:date>2018-02-22T15:33:56Z</dc:date>
    <item>
      <title>ODS HTML Excel Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439317#M109615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple tabulates within my SAS code but when I come to connect it in excel via the web connection, I get this error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This file could not be accessed. Try one of the following:&lt;/P&gt;&lt;P&gt;- Make sure the specific folder exisits&lt;/P&gt;&lt;P&gt;- Make sure the folder contains the file is not read only&lt;/P&gt;&lt;P&gt;- Make sure the file name does not contain any of the following charecters &amp;lt; &amp;gt; ? [&amp;nbsp; ] : | or *&lt;/P&gt;&lt;P&gt;- Make sure the file/path name doesn't contain more than 218 charecters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of these seem fine so I am at a loss as to why it won't work. Any ideas please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the HTML SAS String used&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html body="X:/location/Dep/Area/KTY.HTML" style=HTMLBlue;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then closed off the tabulate with&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to open it with Internet explorer and Chrome but neither work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439317#M109615</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-22T15:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Excel Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439320#M109616</link>
      <description>&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;Try this instead&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS HTML path='&lt;SPAN&gt;X:\location\Dep\Area\'&lt;/SPAN&gt; body='KTY.HTML'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439320#M109616</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2018-02-22T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Excel Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439324#M109617</link>
      <description>&lt;P&gt;I get this error message when running with that code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'body=&lt;BR /&gt;___&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;16 ! 'KTY.HTML'&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR, ARCHIVE, ATTRIBUTES, BASE,&lt;BR /&gt;BODY, CHARSET, CLOSE, CODE, CONTENTS, CSS, CSSSTYLE, ENCODING, FILE, FRAME, GFOOTNOTE,&lt;BR /&gt;GPATH, GTITLE, HEADTEXT, IMAGE_DPI, LAYOUT, METATEXT, NEWFILE, NOGFOOTNOTE, NOGTITLE,&lt;BR /&gt;OPTIONS, PACKAGE, PAGE, PARAMETERS, PATH, RECORD_SEPARATOR, RENDER, STYLE, STYLESHEET,&lt;BR /&gt;TEXT, TRANTAB.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439324#M109617</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-22T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Excel Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439337#M109619</link>
      <description>&lt;P&gt;But it works fine for me&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html path='C:\Users\Wong\Desktop\' body='cars.html';
proc print data=sashelp.cars; run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;7    ODS HTML path='C:\Users\Wong\Desktop\' body='cars.html';
NOTE: Writing HTML Body file: cars.html
8    proc print data=sashelp.cars; run;

NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.48 seconds
      cpu time            0.31 seconds


9    ods html close;








&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439337#M109619</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2018-02-22T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Excel Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439339#M109620</link>
      <description>I think the issue is on our drive, I have moved location and it now works fine. Thanks anyway.</description>
      <pubDate>Thu, 22 Feb 2018 16:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Excel-Error/m-p/439339#M109620</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-22T16:06:26Z</dc:date>
    </item>
  </channel>
</rss>

