<?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 Compare  SAS Codes across environments in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410093#M3834</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually we will develop our SAS DI Job in Development Envrionment and then we will move to UAT and Prod Envrionment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But during testing, we will change the code in UAT and sometime in Dev and then we will migrate to Prod.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now all the Environments are not in Sync.&amp;nbsp;I have a requirement to compare the codes available in all the Environments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually the codes are having more than 1000 lines and Its really tough to compare the codes manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any possible ways to compare the codes automaically?? Please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 06:47:42 GMT</pubDate>
    <dc:creator>Helannivas</dc:creator>
    <dc:date>2017-11-03T06:47:42Z</dc:date>
    <item>
      <title>Compare  SAS Codes across environments</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410093#M3834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually we will develop our SAS DI Job in Development Envrionment and then we will move to UAT and Prod Envrionment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But during testing, we will change the code in UAT and sometime in Dev and then we will migrate to Prod.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now all the Environments are not in Sync.&amp;nbsp;I have a requirement to compare the codes available in all the Environments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually the codes are having more than 1000 lines and Its really tough to compare the codes manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any possible ways to compare the codes automaically?? Please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 06:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410093#M3834</guid>
      <dc:creator>Helannivas</dc:creator>
      <dc:date>2017-11-03T06:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare  SAS Codes across environments</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410106#M3835</link>
      <description>&lt;P&gt;If your server runs on a real operating system (UNIX), you can use the &lt;FONT face="courier new,courier"&gt;diff&lt;/FONT&gt; command to compare text files. The output from that can be used with the &lt;FONT face="courier new,courier"&gt;patch&lt;/FONT&gt; command to bring files up-to-date.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410106#M3835</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-03T07:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare  SAS Codes across environments</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410130#M3838</link>
      <description>&lt;P&gt;You should consider using a Source Control product such as Git - used properly it will eliminate these problems and give you a reliable back up in case of disaster. It's also free if you if you install it on your local server...&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410130#M3838</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-11-03T09:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare  SAS Codes across environments</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410135#M3840</link>
      <description>&lt;P&gt;If used on an Unreal operating system (unlike&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt; there are numerous options for text comparisons.&amp;nbsp; For instance, on windows you have the fc tool from the command line which can compare files, so you could stream that into a SAS program.&amp;nbsp; I would be careful that the files are very similar though, adding a return after the first line of 2000 lines, would result in 1999 differences for instance, so you may need to process the compare information, or even write a SAS program to load the two files, strip blanks/returns other specials out of the files, then compare the remaining characters - this is something we do on RTF files for instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt;&amp;nbsp;that a version control system is your best bet for consistency across various areas/systems, that will retain one repository version, and the others extract a local copy maintaing the link between the two.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Compare-SAS-Codes-across-environments/m-p/410135#M3840</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-03T09:43:27Z</dc:date>
    </item>
  </channel>
</rss>

