<?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 xml mapper: columns &amp;quot;ordinal&amp;quot; always missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/492702#M129528</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of, I apologize if this question should be asked in another board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a .map file from an XML. I would them read (SELECT) from an xml file to generate tabular data. The XML files contain a deep structure, i.e., they are not tabular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;PROBLEM&lt;/STRONG&gt;&lt;/U&gt;: when reading the xml with the generated map, the key columns are always missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Here is an extract from the .map file (table "acts"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;!-- ############################################################ --&amp;gt;
    &amp;lt;TABLE description="acts" name="acts"&amp;gt;
        &amp;lt;TABLE-PATH syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla/acts&amp;lt;/TABLE-PATH&amp;gt;

        &amp;lt;COLUMN class="ORDINAL" name="blabla_ORDINAL"&amp;gt;
            &amp;lt;INCREMENT-PATH beginend="BEGIN" syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla&amp;lt;/INCREMENT-PATH&amp;gt;
            &amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
            &amp;lt;DATATYPE&amp;gt;integer&amp;lt;/DATATYPE&amp;gt;
        &amp;lt;/COLUMN&amp;gt;

        &amp;lt;COLUMN class="ORDINAL" name="acts_ORDINAL"&amp;gt;
            &amp;lt;INCREMENT-PATH beginend="BEGIN" syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla/acts&amp;lt;/INCREMENT-PATH&amp;gt;
            &amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
            &amp;lt;DATATYPE&amp;gt;integer&amp;lt;/DATATYPE&amp;gt;
        &amp;lt;/COLUMN&amp;gt;

    &amp;lt;/TABLE&amp;gt;

    &amp;lt;!-- ############################################################ --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Here is an extract of the script used to read the xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename  myfile '&amp;lt;PATH_TO_FILE_XML&amp;gt;\&amp;lt;XML_FILE_001&amp;gt;.xml';
filename  SXLEMAP '&amp;lt;.MAP_FILE GENERATED BY XML MAPPER&amp;gt;';
libname   myfile xmlv2 xmlmap=SXLEMAP access=READONLY;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Here is the output of the Acts table after reading from the xml. The xml file contains lots of data and these values&amp;nbsp;should not be missing. There should be no missing value at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tableActs.PNG" style="width: 361px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23020i220DC6D62CCD2CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="tableActs.PNG" alt="tableActs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other détails:&lt;/P&gt;&lt;P&gt;SO: Win 7&lt;/P&gt;&lt;P&gt;Enterprise guide: 7.100.2856&lt;/P&gt;&lt;P&gt;Platform version: 9.4.0.0&lt;/P&gt;&lt;P&gt;XML mapper: 903000.0&lt;/P&gt;&lt;P&gt;Does anyone know what could be wrong that SAS is not generating the auto-increment values?&lt;/P&gt;&lt;P&gt;has anyone faced a similar issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 15:43:50 GMT</pubDate>
    <dc:creator>ren_s</dc:creator>
    <dc:date>2018-09-05T15:43:50Z</dc:date>
    <item>
      <title>xml mapper: columns "ordinal" always missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/492702#M129528</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of, I apologize if this question should be asked in another board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a .map file from an XML. I would them read (SELECT) from an xml file to generate tabular data. The XML files contain a deep structure, i.e., they are not tabular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;PROBLEM&lt;/STRONG&gt;&lt;/U&gt;: when reading the xml with the generated map, the key columns are always missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Here is an extract from the .map file (table "acts"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;!-- ############################################################ --&amp;gt;
    &amp;lt;TABLE description="acts" name="acts"&amp;gt;
        &amp;lt;TABLE-PATH syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla/acts&amp;lt;/TABLE-PATH&amp;gt;

        &amp;lt;COLUMN class="ORDINAL" name="blabla_ORDINAL"&amp;gt;
            &amp;lt;INCREMENT-PATH beginend="BEGIN" syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla&amp;lt;/INCREMENT-PATH&amp;gt;
            &amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
            &amp;lt;DATATYPE&amp;gt;integer&amp;lt;/DATATYPE&amp;gt;
        &amp;lt;/COLUMN&amp;gt;

        &amp;lt;COLUMN class="ORDINAL" name="acts_ORDINAL"&amp;gt;
            &amp;lt;INCREMENT-PATH beginend="BEGIN" syntax="XPathENR"&amp;gt;/{1}corpcan/blablas/blabla/acts&amp;lt;/INCREMENT-PATH&amp;gt;
            &amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
            &amp;lt;DATATYPE&amp;gt;integer&amp;lt;/DATATYPE&amp;gt;
        &amp;lt;/COLUMN&amp;gt;

    &amp;lt;/TABLE&amp;gt;

    &amp;lt;!-- ############################################################ --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Here is an extract of the script used to read the xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename  myfile '&amp;lt;PATH_TO_FILE_XML&amp;gt;\&amp;lt;XML_FILE_001&amp;gt;.xml';
filename  SXLEMAP '&amp;lt;.MAP_FILE GENERATED BY XML MAPPER&amp;gt;';
libname   myfile xmlv2 xmlmap=SXLEMAP access=READONLY;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Here is the output of the Acts table after reading from the xml. The xml file contains lots of data and these values&amp;nbsp;should not be missing. There should be no missing value at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tableActs.PNG" style="width: 361px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23020i220DC6D62CCD2CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="tableActs.PNG" alt="tableActs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other détails:&lt;/P&gt;&lt;P&gt;SO: Win 7&lt;/P&gt;&lt;P&gt;Enterprise guide: 7.100.2856&lt;/P&gt;&lt;P&gt;Platform version: 9.4.0.0&lt;/P&gt;&lt;P&gt;XML mapper: 903000.0&lt;/P&gt;&lt;P&gt;Does anyone know what could be wrong that SAS is not generating the auto-increment values?&lt;/P&gt;&lt;P&gt;has anyone faced a similar issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/492702#M129528</guid>
      <dc:creator>ren_s</dc:creator>
      <dc:date>2018-09-05T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: xml mapper: columns "ordinal" always missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/493262#M129739</link>
      <description>&lt;P&gt;You don't provide enough information for us to look at the cause of your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hierarchical XML file structures are detailed here: &lt;A href="http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002593019.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002593019.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 03:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/493262#M129739</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-07T03:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: xml mapper: columns "ordinal" always missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/493378#M129779</link>
      <description>&lt;P&gt;I found what caused the problem in my case: it was an option (validvarname):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options /*mautosource noxwait notes 
sasautos=('\\&amp;lt;machine&amp;gt;\&amp;lt;path_to_macro_dir&amp;gt;')
        nodate nosymbolgen nomprint errors=3 compress=yes */

		validvarname=upcase  /* THIS OPTION CAUSES THE ERROR!!! */


;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 12:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xml-mapper-columns-quot-ordinal-quot-always-missing/m-p/493378#M129779</guid>
      <dc:creator>ren_s</dc:creator>
      <dc:date>2018-09-07T12:43:02Z</dc:date>
    </item>
  </channel>
</rss>

