<?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: Creating a SAS dataset from an HTML batch file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172587#M301667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried the original file with the XML libname engine and still get the same error as per my sample file -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data xml;&lt;/P&gt;&lt;P&gt;19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set in.CREATE_201402070702184;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, \\fp02syd\analytics$\08_Users\Dave_H\EBDM\cba_dua_data\CREATE_201402070702184.xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encountered during XMLMap parsing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; occurred at or near line 1, column 1&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;XML file is empty, corrupt, or XML data is not in a format supported by the XML libname engine: CREATE_201402070702184&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR: XML describe error: Internal processing error.&lt;/P&gt;&lt;P&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 06:08:26 GMT</pubDate>
    <dc:creator>zolagola</dc:creator>
    <dc:date>2014-05-26T06:08:26Z</dc:date>
    <item>
      <title>Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172584#M301664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAS Comm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need some help with parsing a HTML batch file in order to create a SAS dataset. Attached is a sample of the HTML batch file containing two dummy data records. Each records begins at the line = &amp;lt;Application&amp;gt; and ends at the line &amp;lt;/Application&amp;gt;. In a real life example the batch file will contain many thousands of records. Any assistance would be greatly appreciated. Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 01:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172584#M301664</guid>
      <dc:creator>zolagola</dc:creator>
      <dc:date>2014-05-26T01:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172585#M301665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you included is looking like a part a XML file. Is that what you to ceate or is it like AJAX?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 05:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172585#M301665</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-26T05:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172586#M301666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be coming out of something like AJAX as it is via a B2B process. I just kept the first two records (&amp;lt;Application&amp;gt; x 2) from a recent file transfer. I though it was XML too but when I tried using the XML libname engine to assist with importing into a SAS data set it came back with errors saying iot wasn't in XML format? I'll try it again using the full file unedited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 05:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172586#M301666</guid>
      <dc:creator>zolagola</dc:creator>
      <dc:date>2014-05-26T05:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172587#M301667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried the original file with the XML libname engine and still get the same error as per my sample file -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data xml;&lt;/P&gt;&lt;P&gt;19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set in.CREATE_201402070702184;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, \\fp02syd\analytics$\08_Users\Dave_H\EBDM\cba_dua_data\CREATE_201402070702184.xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encountered during XMLMap parsing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; occurred at or near line 1, column 1&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;XML file is empty, corrupt, or XML data is not in a format supported by the XML libname engine: CREATE_201402070702184&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR: XML describe error: Internal processing error.&lt;/P&gt;&lt;P&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172587#M301667</guid>
      <dc:creator>zolagola</dc:creator>
      <dc:date>2014-05-26T06:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172588#M301668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot read always a XML file that way as there are many conventions with XML and not all are known. There must be a header of some type (did not see that). &lt;BR /&gt;There is a XMLMapper tool on the BI instalation that will roll out that tool. It will help to set up a translation definition. &lt;A href="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n10gcahtsna7r7n1rbn3wcxk6zbh.htm" title="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n10gcahtsna7r7n1rbn3wcxk6zbh.htm"&gt;SAS(R) 9.3 XML LIBNAME Engine: User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172588#M301668</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-26T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172589#M301669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers. Thanks for you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172589#M301669</guid>
      <dc:creator>zolagola</dc:creator>
      <dc:date>2014-05-26T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172590#M301670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The root error is "Physical file does not exist". Try to repair that (physical filename should end with .xml instead of .html) before advancing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172590#M301670</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-26T06:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS dataset from an HTML batch file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172591#M301671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Jaap suggested, it looks like it is a XML file .&amp;nbsp; and what output you need ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt; infile 'c:\temp\HTML_batch_file_sample.html' dsd dlm='&amp;lt;&amp;gt;' ;&lt;/P&gt;&lt;P&gt; input @'&amp;gt;' x : $100. @@;&lt;/P&gt;&lt;P&gt; if not missing(x);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 13:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-SAS-dataset-from-an-HTML-batch-file/m-p/172591#M301671</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-26T13:13:38Z</dc:date>
    </item>
  </channel>
</rss>

