<?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: Using the XML Mapper Utility in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144064#M38320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why add "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/SPAN&gt;"&amp;nbsp; at the end of filename statement ?&lt;/P&gt;&lt;P&gt;if you can put it into LOG ,that said you can read it .or you could try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if &lt;STRONG&gt;find&lt;/STRONG&gt;( _infile_ , '&amp;lt;option symbol="' )&amp;nbsp; then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; else&amp;nbsp; if&amp;nbsp; &lt;STRONG&gt;find&lt;/STRONG&gt;( _infile_ , '&amp;lt;contract&amp;gt;' )&amp;nbsp; then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');output;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 10:22:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-05-06T10:22:56Z</dc:date>
    <item>
      <title>Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144057#M38313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to import a seemingly simple XML file into SAS with the XML mapper utility.&amp;nbsp; Note I used the XML mapper successfully on what I thought was a much more complex xml file without any issue.&amp;nbsp; Perhaps I'm missing some simple tweak that will import the data.&amp;nbsp; I want import a table with two variables: stock symbol and option expiration date.&amp;nbsp; If there's more than one expiration date, then the symbol should be repeated.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the xml file that I want to import:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="header" style="border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: black; padding-bottom: 5px; margin: 10px; color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;This XML file does not appear to have any style information associated with it. The document tree is shown below.&lt;/P&gt;&lt;P class="pretty-print" id="tree" style="margin-top: 1em; margin-left: 20px; font-family: monospace; color: #000000;"&gt;&lt;/P&gt;&lt;DIV class="collapsible" id="collapsible0"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;query&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;xmlns:yahoo&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;&lt;A class="jive-link-external-small" href="http://www.yahooapis.com/v1/base.rng"&gt;http://www.yahooapis.com/v1/base.rng&lt;/A&gt;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;yahoo:count&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;2&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;yahoo:created&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;2014-05-04T12:06:45Z&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;yahoo:lang&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;en-US&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="collapsible" id="collapsible1"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;diagnostics&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="collapsible" id="collapsible2"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;url&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;0&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="text"&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://datatables.org/alltables.env"&gt;http://datatables.org/alltables.env&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="collapsible" id="collapsible3"&gt;&lt;/P&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;url&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;2&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="collapsible" id="collapsible4"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;SPAN class="text"&gt;&lt;A class="jive-link-external-small" href="http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml"&gt;http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="text"&gt;]]&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;publiclyCallable&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;true&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/publiclyCallable&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="collapsible" id="collapsible5"&gt;&lt;/P&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;url&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;5&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;825&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;820&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="text"&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=yhoo"&gt;http://finance.yahoo.com/q/op?s=yhoo&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;javascript&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;4&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;845&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;840&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;instructions-used&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;14243&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;table-name&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;yahoo.finance.option_contracts&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="collapsible" id="collapsible6"&gt;&lt;/P&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;url&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;5&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;939&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;934&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="text"&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=fb"&gt;http://finance.yahoo.com/q/op?s=fb&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;javascript&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-start-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;4&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-stop-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;958&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;execution-time&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;954&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;instructions-used&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;25640&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;table-name&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;yahoo.finance.option_contracts&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;user-time&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;959&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/user-time&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;service-time&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;1640&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/service-time&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;build-version&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0.2.2467&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/build-version&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/diagnostics&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="collapsible" id="collapsible7"&gt;&lt;/P&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;results&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="collapsible" id="collapsible8"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;option&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;symbol&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;yhoo&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-05&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-06&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-07&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-10&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2015-01&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2016-01&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="collapsible" id="collapsible9"&gt;&lt;/P&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;option&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;symbol&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;fb&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-05&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-06&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-07&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-09&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2014-12&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2015-01&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;contract&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;2016-01&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/contract&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/results&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/query&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="comment webkit-html-comment"&gt;&amp;lt;!-- total: 959 --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="comment webkit-html-comment"&gt;&amp;lt;!-- engine5.yql.gq1.yahoo.com --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="comment webkit-html-comment"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line"&gt;&lt;SPAN class="comment webkit-html-comment"&gt;url to the above xml: &lt;A href="https://communities.sas.com/" title="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, given the above I hope to get a table that looks like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Symbol&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expiration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-05&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-06&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-07&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-10&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015-01&lt;/P&gt;&lt;P&gt;yhoo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016-01&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-05&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-06&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-07&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-09&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-12&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015-01&lt;/P&gt;&lt;P&gt;fb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to import the data using the XML mapper, I get an error stating that the " XMLMap contains no tables".&amp;nbsp; And when I try to create a custom map I only get the last record of the desired table above.&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there a simple adjustment I can make to import the data?&amp;nbsp; Thank you so much in advance for any help or suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 12:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144057#M38313</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-04T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144058#M38314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use filename + url to get the xml file ? If it does , that would easy to get .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; input;&lt;/P&gt;&lt;P&gt; length symbol expiration $ 20;&lt;/P&gt;&lt;P&gt; retain symbol;&lt;/P&gt;&lt;P&gt; if _infile_ eq: '&amp;lt;option symbol="' then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp; if _infile_ eq: '&amp;lt;contract&amp;gt;' then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');output;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datalines4;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query xmlns:yahoo="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.yahooapis.com/v1/base.rng"&gt;http://www.yahooapis.com/v1/base.rng&lt;/A&gt;&lt;SPAN&gt;" yahoo:count="2" yahoo:created="2014-05-04T12:23:36Z" yahoo:lang="en-US"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;diagnostics&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;url execution-start-time="1" execution-stop-time="2" execution-time="1"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://datatables.org/alltables.env"&gt;http://datatables.org/alltables.env&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;url execution-start-time="2" execution-stop-time="3" execution-time="1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;![CDATA[&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml"&gt;http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;]]&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;publiclyCallable&amp;gt;true&amp;lt;/publiclyCallable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;url execution-start-time="6" execution-stop-time="760" execution-time="754"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=yhoo"&gt;http://finance.yahoo.com/q/op?s=yhoo&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;javascript execution-start-time="4" execution-stop-time="777" execution-time="772" instructions-used="14243" table-name="yahoo.finance.option_contracts"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;url execution-start-time="6" execution-stop-time="843" execution-time="837"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;![CDATA[ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=fb"&gt;http://finance.yahoo.com/q/op?s=fb&lt;/A&gt;&lt;SPAN&gt; ]]&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;javascript execution-start-time="4" execution-stop-time="861" execution-time="856" instructions-used="25640" table-name="yahoo.finance.option_contracts"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;user-time&amp;gt;862&amp;lt;/user-time&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;service-time&amp;gt;1472&amp;lt;/service-time&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;build-version&amp;gt;0.2.2467&amp;lt;/build-version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/diagnostics&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option symbol="yhoo"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-07&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-10&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2015-01&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option symbol="fb"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-07&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-09&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2014-12&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2015-01&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/contract&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&amp;nbsp; total: 862&amp;nbsp; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&amp;nbsp; engine8.yql.gq1.yahoo.com&amp;nbsp; --&amp;gt;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&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>Sun, 04 May 2014 12:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144058#M38314</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-04T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144059#M38315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seeing you posted data is does not follow the &lt;A href="http://www.w3schools.com/xml/xml_doctypes.asp" title="http://www.w3schools.com/xml/xml_doctypes.asp"&gt;XML Document Types&lt;/A&gt; (w3schools) structure.&lt;BR /&gt;There is a reference to a yahoo xml file that specify the in a xml this content.&lt;/P&gt;&lt;P&gt;Would be an explanation why XMLapper does not recognize the data you still can see.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 14:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144059#M38315</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-04T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144060#M38316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; What you have looks like an XQUERY file, not really an XML data file. The XML Mapper is designed to work with XML data files. You might want to work with Tech Support on whether this type of file will even be possible to read with the XML Mapper utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 18:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144060#M38316</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-05-04T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144061#M38317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1075" data-externalid="" data-presence="null" data-userid="645292" data-username="Ksharp" href="https://communities.sas.com/people/Ksharp" id="jive-64529214690611216142711" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba; text-decoration: underline;"&gt;Ksharp&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the suggestion.&amp;nbsp; I'll give it a try and will report back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144061#M38317</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-05T17:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144062#M38318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the code.&amp;nbsp; Your solution worked perfectly when I used the datalines4 syntax.&amp;nbsp; However, I'm having some trouble using the filename + url&amp;nbsp; solution.&amp;nbsp; I can put the data into the log, but can't seem to get sas to read it.&amp;nbsp; Note I tried using the put statement to create the data for datalines4 but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code that I currently have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename in url "&lt;A _jive_internal="true" href="https://communities.sas.com/thread/57461" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;" title="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&lt;/A&gt;" lrecl=32000; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;infile in truncover;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;length symbol expiration $ 20;&lt;/P&gt;&lt;P&gt;retain symbol;&lt;/P&gt;&lt;P&gt;if _infile_ eq: '&amp;lt;option symbol="' then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp; if _infile_ eq: '&amp;lt;contract&amp;gt;' then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');output;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on what I'm missing?&amp;nbsp; Perhaps an infile=option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 09:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144062#M38318</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-06T09:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144063#M38319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap &amp;amp; Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&amp;nbsp; No wonder I cannot import the data with the XML Mapper!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bill &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 09:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144063#M38319</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-06T09:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144064#M38320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why add "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/SPAN&gt;"&amp;nbsp; at the end of filename statement ?&lt;/P&gt;&lt;P&gt;if you can put it into LOG ,that said you can read it .or you could try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if &lt;STRONG&gt;find&lt;/STRONG&gt;( _infile_ , '&amp;lt;option symbol="' )&amp;nbsp; then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; else&amp;nbsp; if&amp;nbsp; &lt;STRONG&gt;find&lt;/STRONG&gt;( _infile_ , '&amp;lt;contract&amp;gt;' )&amp;nbsp; then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');output;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 10:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144064#M38320</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-06T10:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144065#M38321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just entere that long url link in a browser. What I see is coming back is tree records, the record you need is a long string with all the data you have previous copied&amp;nbsp; as separated records. FF and Chrome are giving a nice message like the XML mapper, the layout recognition is fine.&amp;nbsp; Could be an indication you could process the file as XML.&lt;/P&gt;&lt;P&gt; As long as you use that file and save it as a real copy not doing a copy/paste from the screen you are on the best options.&lt;/P&gt;&lt;P&gt;For some XML backgropund see: &lt;A href="http://support.sas.com/resources/papers/proceedings12/220-2012.pdf" title="http://support.sas.com/resources/papers/proceedings12/220-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/220-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 10:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144065#M38321</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-06T10:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144066#M38322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to open the XML links but given the construct in your post, you should be able to read that with the mapper in 2 different ways. The simplest being to make sure that your&lt;/P&gt;&lt;P&gt;&amp;lt;TABLE-PATH&amp;gt;&lt;/P&gt;&lt;P&gt;has tue full hierarchy all the way up to and including /contract&lt;/P&gt;&lt;P&gt;&amp;lt;/TABLE-PATH&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This acts as your row-creating driver. That is, doing so you will have one row created in your dataset each time you run through this hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second thing to do is to define the column SYMBOL using the options retain and replace like&lt;/P&gt;&lt;P&gt;&amp;lt;COLUMN name="SYMBOL" retain="yes" replace="yes"&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;/COLUMN&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These 2 things combined should allow you to easily create the desired table from the specified xml. If you can specify the full x-path to /contract (since I can't seem to view the xml link), I can probably provide you with a .map file that will meet your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144066#M38322</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2014-05-06T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144067#M38323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@vince I got the file by copying paste the text of the link by Billjones, the hyperlink itself is corrupted. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144067#M38323</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-06T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144068#M38324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the suggestions.&amp;nbsp; I believe that I should be able to read the data without using the XML mapper.&amp;nbsp; I'm able to see the data in the log, but SAS cannot interpret it.&amp;nbsp; I'm getting an invalid data error (code &amp;amp; log are below).&amp;nbsp; Does anyone see what I'm doing wrong?&amp;nbsp; Any thoughts or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dm 'clear log';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename in url "&lt;/SPAN&gt;&lt;A class="jive-link-external-small"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&lt;/A&gt;&lt;SPAN&gt;" lrecl=32000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;infile in dsd end=eof termstr=crlf;&lt;/P&gt;&lt;P&gt;input symbol expiration $ 20;&lt;/P&gt;&lt;P&gt;retain symbol;&lt;/P&gt;&lt;P&gt;if find(_infile_ ,'&amp;lt;option symbol="') then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp; if&amp;nbsp; find( _infile_ , '&amp;lt;contract&amp;gt;' )&amp;nbsp; then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');output; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;102&amp;nbsp; dm 'clear log';&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;104&amp;nbsp; filename in url&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;104! "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contr"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;104! acts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2F%2Fdatata&lt;/P&gt;&lt;P&gt;104! bles.org%2Falltables.env" lrecl=32000;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference DIAGNOSTICS not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference DIAGNOSTICS not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference ENV not resolved.&lt;/P&gt;&lt;P&gt;105&lt;/P&gt;&lt;P&gt;106&amp;nbsp; data want;&lt;/P&gt;&lt;P&gt;107&amp;nbsp; infile in dsd end=eof termstr=crlf;&lt;/P&gt;&lt;P&gt;108&amp;nbsp; input symbol expiration $ 20;&lt;/P&gt;&lt;P&gt;109&amp;nbsp; retain symbol;&lt;/P&gt;&lt;P&gt;110&amp;nbsp; if find(_infile_ ,'&amp;lt;option symbol="') then symbol=scan(_infile_,2,'"');&lt;/P&gt;&lt;P&gt;111&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp; if&amp;nbsp; find( _infile_ , '&amp;lt;contract&amp;gt;' )&amp;nbsp; then do;expiration=scan(_infile_,2,'&amp;lt;&amp;gt;');&lt;/P&gt;&lt;P&gt;111! output; end;&lt;/P&gt;&lt;P&gt;112&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Line):(Column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110:51&lt;/P&gt;&lt;P&gt;NOTE: The infile IN is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.opt"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.opt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ion_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;diagnostics=true&amp;amp;env=http%3A%2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F%2Fdatatables.org%2Falltables.env,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Local Host Name=LP43235,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Local Host IP addr=fe80::5d94:d77b:dc9d:7b8f%10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service Hostname Name=yts1.yql.vip.ne1.yahoo.com,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service IP addr=98.138.243.55,Service Name=N/A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service Portno=443,Lrecl=32000,Recfm=Variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Invalid data for symbol in line 1 1-1747.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1&amp;nbsp;&amp;nbsp; CHAR&amp;nbsp; &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;.&amp;lt;query xmlns:yahoo="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.yahooapis.com/v1"&gt;http://www.yahooapis.com/v1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 33766276776663232322666666663255423233037767727666737666632677732277727666667672666273&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; CF8DC065239FED21E0205E3F49E7D2546D82FEAC1552908DCE3A918FFD28440AFF777E918FF1093E3FDF61&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 87&amp;nbsp; /base.rng" yahoo:count="2" yahoo:created="2014-05-11T10:56:44Z" yahoo:lang="en"&amp;gt;&amp;lt;diagn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 173&amp;nbsp; ostics&amp;gt;&amp;lt;url execution-start-time="0" execution-stop-time="71" execution-time="71"&amp;gt;&amp;lt;![C&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 259&amp;nbsp; DATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://datatables.org/alltables.env"&gt;http://datatables.org/alltables.env&lt;/A&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;url execution-start-time="72" execut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 345&amp;nbsp; ion-stop-time="143" execution-time="71"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.datatables.org/yahoo/finan"&gt;http://www.datatables.org/yahoo/finan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 431&amp;nbsp; ce/yahoo.finance.option_contracts.xml]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;publiclyCallable&amp;gt;true&amp;lt;/publiclyCallable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 517&amp;nbsp; &amp;gt;&amp;lt;url execution-start-time="146" execution-stop-time="1143" execution-time="997"&amp;gt;&amp;lt;![CD&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 603&amp;nbsp; ATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=fb"&gt;http://finance.yahoo.com/q/op?s=fb&lt;/A&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;javascript execution-start-time="145"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 689&amp;nbsp; execution-stop-time="1164" execution-time="1019" instructions-used="15397" table-name=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 775&amp;nbsp; "yahoo.finance.option_contracts"&amp;gt;&amp;lt;/javascript&amp;gt;&amp;lt;url execution-start-time="146" executio&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 861&amp;nbsp; n-stop-time="1221" execution-time="1075"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=yhoo"&gt;http://finance.yahoo.com/q/op?s=yhoo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 947&amp;nbsp; ]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;javascript execution-start-time="145" execution-stop-time="1243" execution-t&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1033&amp;nbsp; ime="1098" instructions-used="25640" table-name="yahoo.finance.option_contracts"&amp;gt;&amp;lt;/jav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1119&amp;nbsp; ascript&amp;gt;&amp;lt;user-time&amp;gt;1244&amp;lt;/user-time&amp;gt;&amp;lt;service-time&amp;gt;2117&amp;lt;/service-time&amp;gt;&amp;lt;build-version&amp;gt;0.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1205&amp;nbsp; .2467&amp;lt;/build-version&amp;gt;&amp;lt;/diagnostics&amp;gt;&amp;lt;results&amp;gt;&amp;lt;option symbol="yhoo"&amp;gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1291&amp;nbsp; ontract&amp;gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-07&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-10&amp;lt;/con&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1377&amp;nbsp; tract&amp;gt;&amp;lt;contract&amp;gt;2015-01&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/contract&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;option symbol=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1463&amp;nbsp; "fb"&amp;gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-07&amp;lt;/contra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1549&amp;nbsp; ct&amp;gt;&amp;lt;contract&amp;gt;2014-09&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-12&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2015-01&amp;lt;/contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1635&amp;nbsp; &amp;gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/contract&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;/results&amp;gt;&amp;lt;/query&amp;gt;&amp;lt;!-- total: 1244 --&amp;gt;.&amp;lt;!-- engi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 33666776673333323332666776673326776663327677677332776773322227676632333322230322226666&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; EC3FE42134E2016D01CF3FE42134ECFF049FEECF2535C43ECF15529EC1DD04F41CA012440DDEAC1DD05E79&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1721&amp;nbsp; ne10.yql.ne1.yahoo.com --&amp;gt;. 1747&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 663327762663276666266622230&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; E510E91CEE51E918FFE3FD0DDEA&lt;/P&gt;&lt;P&gt;eof=1 symbol=1 expiration=&amp;nbsp; _ERROR_=1&lt;/P&gt;&lt;P&gt;_INFILE_=&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query xmlns:yahoo="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.yahooapis.com/v1/"&gt;http://www.yahooapis.com/v1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;base.rng" yahoo:count="2" yahoo:created="2014-05-11T10:56:44Z" yahoo:lang="en"&amp;gt;&amp;lt;diagnostics&amp;gt;&amp;lt;url&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; execution-start-time="0" execution-stop-time="71" execution-time="71"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://datatable/"&gt;http://datatable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;s.org/alltables.env]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;url execution-start-time="72" execution-stop-time="143" execution-t&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ime="71"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml"&gt;http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml&lt;/A&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/url&amp;gt;&amp;lt;publiclyCallable&amp;gt;true&amp;lt;/publiclyCallable&amp;gt;&amp;lt;url execution-start-time="146" execution-stop-tim&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e="1143" execution-time="997"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=fb"&gt;http://finance.yahoo.com/q/op?s=fb&lt;/A&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;/url&amp;gt;&amp;lt;javascript ex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ecution-start-time="145" execution-stop-time="1164" execution-time="1019" instructions-used="153&lt;/P&gt;&lt;P&gt;97" table-name="yahoo.finance.option_contracts"&amp;gt;&amp;lt;/javascript&amp;gt;&amp;lt;url execution-start-time="146" exe&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cution-stop-time="1221" execution-time="1075"&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://finance.yahoo.com/q/op?s=yhoo"&gt;http://finance.yahoo.com/q/op?s=yhoo&lt;/A&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;url&amp;gt;&amp;lt;javascript execution-start-time="145" execution-stop-time="1243" execution-time="1098" inst&lt;/P&gt;&lt;P&gt;ructions-used="25640" table-name="yahoo.finance.option_contracts"&amp;gt;&amp;lt;/javascript&amp;gt;&amp;lt;user-time&amp;gt;1244&amp;lt;/&lt;/P&gt;&lt;P&gt;user-time&amp;gt;&amp;lt;service-time&amp;gt;2117&amp;lt;/service-time&amp;gt;&amp;lt;build-version&amp;gt;0.2.2467&amp;lt;/build-version&amp;gt;&amp;lt;/diagnostics&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;results&amp;gt;&amp;lt;option symbol="yhoo"&amp;gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&amp;lt;contract&lt;/P&gt;&lt;P&gt;&amp;gt;2014-07&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-10&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2015-01&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/co&lt;/P&gt;&lt;P&gt;ntract&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;option symbol="fb"&amp;gt;&amp;lt;contract&amp;gt;2014-05&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-06&amp;lt;/contract&amp;gt;&amp;lt;con&lt;/P&gt;&lt;P&gt;tract&amp;gt;2014-07&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-09&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2014-12&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2015-0&lt;/P&gt;&lt;P&gt;1&amp;lt;/contract&amp;gt;&amp;lt;contract&amp;gt;2016-01&amp;lt;/contract&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;/results&amp;gt;&amp;lt;/query&amp;gt;&amp;lt;!-- total: 1244 --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- eng&lt;/P&gt;&lt;P&gt;ine10.yql.ne1.yahoo.com --&amp;gt;&lt;/P&gt;&lt;P&gt;_N_=1&lt;/P&gt;&lt;P&gt;NOTE: 1 record was read from the infile IN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 1747.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 1747.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.WANT has 0 observations and 2 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.86 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 11:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144068#M38324</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-11T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144069#M38325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like this xml is a stream file .Try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; 
data temp;
infile 'c:\temp\yahoo.txt' recfm=n dlm='&amp;lt;&amp;gt;';
length symbol expiration $ 20;
retain symbol;
input token : $200. @@;
if prxmatch('/(^\d{4}-\d{2})|(option\s+symbol=)/o',token) then do;
&amp;nbsp; if left(token) =: 'option' then&amp;nbsp; do;symbol=scan(token,2,'"'); delete;end;
&amp;nbsp; expiration=token;
&amp;nbsp; output;
 end;
 drop token;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;filename x url 'http://...........' ;
data temp;
infile x recfm=n dlm='&amp;lt;&amp;gt;';
length symbol expiration $ 20;
retain symbol;
input token : $200. @@;
if prxmatch('/(^\d{4}-\d{2})|(option\s+symbol=)/o',token) then do;
&amp;nbsp; if left(token) =: 'option' then&amp;nbsp; do;symbol=scan(token,2,'"'); delete;end;
&amp;nbsp; expiration=token;
&amp;nbsp; output;
 end;
 drop token;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 13:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144069#M38325</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-11T13:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144070#M38326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You specified cr lf.&amp;nbsp;&amp;nbsp; cr=Carriage Return lf=linefeed remember the old typewriters having this physical. This convention is Windows related. &lt;/P&gt;&lt;P&gt;Within internet http/xml the accepted convention is Unix-based the newline or lf.&amp;nbsp; It has no meaning in html or xml. It is just being made human readable and workable within editors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the Zone/Numr lines in a monospace font (courier) in a editor. The 0 and 1 in the Zone field should alarm you. Having it aligned you can see the combination 0A this the lf-symbol. lf is not a valid symbol for string processing as it has no image for the screen.&amp;nbsp; .... Advice: change your record indication form crlf to lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are seeing the xml is allowing UTf8 this encoding is mentioned. Utf8 is a possible multitbyte character encoding. With the common latin1 symbols the old 1 byte character is used.&lt;/P&gt;&lt;P&gt;When there would be a multibyte char it will switch by using 00 (zone/number) and other not usual used bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The warnings in the url are coming from the &amp;amp; usage. Having the string in " (double quotes) SAS will try to solve that is sas-macro vars.&lt;/P&gt;&lt;P&gt;The %20 (space) %3A (:)&amp;nbsp; in your Url are byte encodings to protect misunderstanding in intrepretations (routers/webservers). The %0A (lf) and %09 (ht tab) usage there I do not understand&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 14:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144070#M38326</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-11T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144071#M38327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the code.&amp;nbsp; Your solution worked perfectly.&amp;nbsp; I can now download all the option expiration dates.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 13:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144071#M38327</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-15T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using the XML Mapper Utility</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144072#M38328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&amp;nbsp; I tried some of your suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 13:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-XML-Mapper-Utility/m-p/144072#M38328</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-05-15T13:05:20Z</dc:date>
    </item>
  </channel>
</rss>

