<?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: SAS xml mapper XPATH problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513239#M138277</link>
    <description>Yes, That is the current solution we are using.&lt;BR /&gt;&lt;BR /&gt;In the current solution every XML element is a SAS table with 2 ordinal columns, we then join them.&lt;BR /&gt;&lt;BR /&gt;We are trying to optimize the current process, by reducing number of tables we are coping from XML to SAS hence reducing number of ordinal columns.&lt;BR /&gt;&lt;BR /&gt;Here the road block is the AuditRecord element which can appear at different hierarchy levels per record, but it basically represents the timestamp of the record action.&lt;BR /&gt;&lt;BR /&gt;Easiest way is to download all as different tables and then collase. But to reduce IO I am trying to read all of them in a single column.&lt;BR /&gt;&lt;BR /&gt;How ever it looks impossible.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
    <pubDate>Thu, 15 Nov 2018 09:13:57 GMT</pubDate>
    <dc:creator>Satish_Parida</dc:creator>
    <dc:date>2018-11-15T09:13:57Z</dc:date>
    <item>
      <title>SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/512931#M138186</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added the following columns in the mapper file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;COLUMN name="DateTimeStamp"&amp;gt;
	&amp;lt;PATH syntax="XPathENR"&amp;gt;/{1}ODM/{1}ClinicalData/{1}SubjectData/{1}AuditRecord/{1}DateTimeStamp&amp;lt;/PATH&amp;gt;
	&amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
	&amp;lt;DATATYPE&amp;gt;datetime&amp;lt;/DATATYPE&amp;gt;
	&amp;lt;FORMAT width="19"&amp;gt;IS8601DT&amp;lt;/FORMAT&amp;gt;
	&amp;lt;INFORMAT width="19"&amp;gt;IS8601DT&amp;lt;/INFORMAT&amp;gt;
&amp;lt;/COLUMN&amp;gt;


&amp;lt;COLUMN name="DateTimeStamp"&amp;gt;
	&amp;lt;PATH syntax="XPathENR"&amp;gt;/{1}ODM/{1}ClinicalData/{1}SubjectData/{1}StudyEventData/{1}FormData/{1}ItemGroupData/{1}ItemData/{1}AuditRecord/{1}DateTimeStamp&amp;lt;/PATH&amp;gt;
	&amp;lt;TYPE&amp;gt;numeric&amp;lt;/TYPE&amp;gt;
	&amp;lt;DATATYPE&amp;gt;datetime&amp;lt;/DATATYPE&amp;gt;
	&amp;lt;FORMAT width="19"&amp;gt;IS8601DT&amp;lt;/FORMAT&amp;gt;
	&amp;lt;INFORMAT width="19"&amp;gt;IS8601DT&amp;lt;/INFORMAT&amp;gt;
&amp;lt;/COLUMN&amp;gt;&lt;/PRE&gt;&lt;P&gt;Here instead of getting the second column in&amp;nbsp;DateTimeStamp it creates a new column.&lt;/P&gt;&lt;P&gt;Is there any way we can map 2 XPATHS to one Column name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/512931#M138186</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-11-14T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513147#M138238</link>
      <description>&lt;P&gt;&lt;EM&gt;Is there any way we can map 2 XPATHS to one Column name?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I am no expert, but not&amp;nbsp;as far as I know.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 23:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513147#M138238</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-14T23:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513233#M138271</link>
      <description>&lt;P&gt;The reason I am looking for this solution is I have the&amp;nbsp;{1}AuditRecord element in multiple places in the clinical data&amp;nbsp;hierarchy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So instead of creating multiple tables, I want to some how extract the data in the same columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will reduce 25 columns to 5 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 08:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513233#M138271</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-11-15T08:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513238#M138276</link>
      <description>&lt;P&gt;Can't you just read DateTimeStamp1, DateTimeStamp2 ... from the different locations and derive DateTimeStamp=coalescec( DateTimeStamp1, DateTimeStamp2, etc )&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513238#M138276</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-15T21:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513239#M138277</link>
      <description>Yes, That is the current solution we are using.&lt;BR /&gt;&lt;BR /&gt;In the current solution every XML element is a SAS table with 2 ordinal columns, we then join them.&lt;BR /&gt;&lt;BR /&gt;We are trying to optimize the current process, by reducing number of tables we are coping from XML to SAS hence reducing number of ordinal columns.&lt;BR /&gt;&lt;BR /&gt;Here the road block is the AuditRecord element which can appear at different hierarchy levels per record, but it basically represents the timestamp of the record action.&lt;BR /&gt;&lt;BR /&gt;Easiest way is to download all as different tables and then collase. But to reduce IO I am trying to read all of them in a single column.&lt;BR /&gt;&lt;BR /&gt;How ever it looks impossible.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 15 Nov 2018 09:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513239#M138277</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-11-15T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513244#M138280</link>
      <description>Do you need several tables?Can't you have several columns and do all the processing in one go?&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Nov 2018 10:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513244#M138280</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-15T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513251#M138283</link>
      <description>&lt;P&gt;That is also doable, we will have 5 datetime columns, we wanted 1 column so:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. Not to select 4 additional columns (reduce writing time)&lt;BR /&gt;2. Do a collase to create the final datetime column (reduce processing time).&lt;/P&gt;&lt;P&gt;3. We have 5 of these type of columns (transactionid, user, location, source, actionname and datetimestamp) so it becomes 25 columns in place of just 5.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All this to reduce IO usage.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 11:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513251#M138283</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-11-15T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS xml mapper XPATH problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513646#M138411</link>
      <description>&lt;P&gt;If you just calculate&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DateTimeStamp=coalescec( of DateTimeStamp1 - DateTimeStamp5 );
drop DateTimeStamp1 - DateTimeStamp5 ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;when reading the XML file, you'll have just one step and the&amp;nbsp;lowest possible IOs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-xml-mapper-XPATH-problem/m-p/513646#M138411</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-15T21:29:19Z</dc:date>
    </item>
  </channel>
</rss>

