<?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: Comparing two SAS Programs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194237#M36535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, just datastep load them into datasets, then proc compare:&lt;/P&gt;&lt;P&gt;data base;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length buffer $2000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "xyz.sas";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;proc compare base=base...;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, more importantly is why you want to do this.&amp;nbsp; Computer comparisons are logical, hence if there is one extra line in at line 2, then everything from that point on will not match.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I would suggest that you are better off using version control software - its useful at any level of programming.&amp;nbsp; This is a database which holds base file and every revision to that file.&amp;nbsp; It can give you XML reports on differences etc.&amp;nbsp; Also has roll-back functionality and never loses history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 09:02:30 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-07-02T09:02:30Z</dc:date>
    <item>
      <title>Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194236#M36534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to compare two SAS programs programatically. One way I know is to compare through TextPad but that is more of manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 08:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194236#M36534</guid>
      <dc:creator>AmitRathore</dc:creator>
      <dc:date>2015-07-02T08:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194237#M36535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, just datastep load them into datasets, then proc compare:&lt;/P&gt;&lt;P&gt;data base;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length buffer $2000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "xyz.sas";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;proc compare base=base...;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, more importantly is why you want to do this.&amp;nbsp; Computer comparisons are logical, hence if there is one extra line in at line 2, then everything from that point on will not match.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I would suggest that you are better off using version control software - its useful at any level of programming.&amp;nbsp; This is a database which holds base file and every revision to that file.&amp;nbsp; It can give you XML reports on differences etc.&amp;nbsp; Also has roll-back functionality and never loses history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 09:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194237#M36535</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-02T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194238#M36536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In UNIX, use the diff (&lt;A href="https://en.wikipedia.org/wiki/Diff_utility" title="https://en.wikipedia.org/wiki/Diff_utility"&gt;diff utility - Wikipedia, the free encyclopedia&lt;/A&gt;) command. It was specifically written for this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 09:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194238#M36536</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-07-02T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194239#M36537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason of comparing program is that I need to migrate some SAS programs from SDD3.5(windows) to SDD4.5(unix). And due to this I have to make same changes in the program like changes backward slash ('\') to forward slash ('/'). After making changes I need to make sure that anything else is not changed accidently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 11:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194239#M36537</guid>
      <dc:creator>AmitRathore</dc:creator>
      <dc:date>2015-07-02T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194240#M36538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you can use the compare above, but your better off using a text compare such as diff which KurtBremser has provided.&amp;nbsp; You can then use that output as part of the documentation of the migration program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 12:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194240#M36538</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-02T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194241#M36539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of tools to compare two file . Like&amp;nbsp; WinMerge &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 12:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194241#M36539</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-02T12:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194242#M36540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also useful is the freely available tkdiff that gives a visual, side by side comparison of programs (Unix). On a Windows platform, the PSP editor has a very similar text difference tool that does a side by side comparison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 19:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194242#M36540</guid>
      <dc:creator>WaltSmith</dc:creator>
      <dc:date>2015-07-02T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194243#M36541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea of comparing two SAS programs as-is could be flawed, depending on the SAS environment where invoked, and also considering if/how SAS AUTOCALL MACROs or MACRO statements (old SAS 79 style - ex:&amp;nbsp; MACRO _BOO&amp;nbsp; BLAH BLAH BLAH % ) may be exploited (that being embedded code references where you would only see %xxxxxxx;&amp;nbsp; (disclaimer-invoked: oversimplified example) in the main SAS code-piece being analyzed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also depending on the SAS process / code complexity, there may be path-conditions influencing just how much of the code is executed, such as a passed SYSPARM or incoming %LET macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott Barry&lt;/P&gt;&lt;P&gt;SBBWorks, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 21:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparing-two-SAS-Programs/m-p/194243#M36541</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2015-07-02T21:25:40Z</dc:date>
    </item>
  </channel>
</rss>

