<?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: Is it possible to &amp;quot;smart&amp;quot; and quick compare big xml files? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91213#M19289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;Approach Libname +XML isn't ok in my case becouse this one-row xml file is actually formed by proc metadata and I already use libname XML + different xmlmaps for extracting neeeded info from this source xml file(formed by proc metadata).&lt;/P&gt;&lt;P&gt;But your first advise(about solution provided by MikeZdeb:lrecl&amp;gt;32767+ dsd and pad options) were perfect, actually what I need.&lt;/P&gt;&lt;P&gt;May be someone will be interested in the Mike code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;data new;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;infile 'z:\names.txt' dsd lrecl=50000 pad;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;input name : $15. @@;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;Thanks!&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 07:02:29 GMT</pubDate>
    <dc:creator>Yura2301</dc:creator>
    <dc:date>2012-06-26T07:02:29Z</dc:date>
    <item>
      <title>Is it possible to "smart" and quick compare big xml files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91211#M19287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the task - compare more-less big xml files(~200 kb-1 mb).&lt;/P&gt;&lt;P&gt;This files is formed by proc metadata, so all text stored in one line, that isn't very good becouse SAS can read 32767 characters from one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result I'd like to have a fact:&lt;/P&gt;&lt;P&gt;if files absolutely the same or have some differents.&lt;/P&gt;&lt;P&gt;Off cource I can compare file size but obviously equal file size doesn't garanty that content of files are same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there are some cool:) procedure or smart soulution that allow solve the task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 08:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91211#M19287</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-06-25T08:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to "smart" and quick compare big xml files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91212#M19288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"becouse SAS can read 32767 characters from one line."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nor really. SAS can read more than 1G characters from one line. MikeZeba has already show it before at this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your question.&lt;/P&gt;&lt;P&gt;Did you consider using LIBNAME + XML to compare these xml files OR&lt;/P&gt;&lt;P&gt;you can directly use DATA STEP to compare them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 02:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91212#M19288</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-26T02:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to "smart" and quick compare big xml files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91213#M19289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;Approach Libname +XML isn't ok in my case becouse this one-row xml file is actually formed by proc metadata and I already use libname XML + different xmlmaps for extracting neeeded info from this source xml file(formed by proc metadata).&lt;/P&gt;&lt;P&gt;But your first advise(about solution provided by MikeZdeb:lrecl&amp;gt;32767+ dsd and pad options) were perfect, actually what I need.&lt;/P&gt;&lt;P&gt;May be someone will be interested in the Mike code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;data new;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;infile 'z:\names.txt' dsd lrecl=50000 pad;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;input name : $15. @@;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;STRONG&gt;Thanks!&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 07:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91213#M19289</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-06-26T07:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to "smart" and quick compare big xml files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91214#M19290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Or you can change the format of record, that also can settle this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;infile 'z:\names.txt' dsd &lt;STRONG&gt;recfm=n&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;input name : $15. @@;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 02:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91214#M19290</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-27T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to "smart" and quick compare big xml files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91215#M19291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksarp,&lt;/P&gt;&lt;P&gt;Thanks for one more variant , I'll look also into it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 06:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-quot-smart-quot-and-quick-compare-big-xml/m-p/91215#M19291</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-06-27T06:56:49Z</dc:date>
    </item>
  </channel>
</rss>

