<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368565#M64976</link>
    <description>&lt;P&gt;Explain your situation.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 02:50:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-20T02:50:19Z</dc:date>
    <item>
      <title>How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368553#M64972</link>
      <description>&lt;P&gt;Hello team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help me in this resolve this problem&lt;/P&gt;
&lt;P&gt;how to know, if client has sent same last month file this time too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;nagmani&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 01:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368553#M64972</guid>
      <dc:creator>nagmani</dc:creator>
      <dc:date>2017-06-20T01:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368554#M64973</link>
      <description>&lt;P&gt;PROC COMPARE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/148743"&gt;@nagmani&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help me in this resolve this problem&lt;/P&gt;
&lt;P&gt;how to know, if client has sent same last month file this time too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;nagmani&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 01:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368554#M64973</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-20T01:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368555#M64974</link>
      <description>I've modified your subject line, please try to use a descriptive subject line in the future.</description>
      <pubDate>Tue, 20 Jun 2017 01:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368555#M64974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-20T01:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368564#M64975</link>
      <description>Thanks Reeza, but how to know it has been already sent my client last month. Plz give code.</description>
      <pubDate>Tue, 20 Jun 2017 02:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368564#M64975</guid>
      <dc:creator>nagmani</dc:creator>
      <dc:date>2017-06-20T02:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368565#M64976</link>
      <description>&lt;P&gt;Explain your situation.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 02:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368565#M64976</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-20T02:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368576#M64977</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your requirement:&lt;/P&gt;&lt;P&gt;please help me in this resolve this problem&lt;/P&gt;&lt;P&gt;how to know, if client has sent same last month file this time too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need more information on your query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Last month file data available with you or not&lt;/P&gt;&lt;P&gt;2. If yes read the current month file and stored the data in temparory dataset and compare with last month loaded data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 04:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368576#M64977</guid>
      <dc:creator>ckkumar3</dc:creator>
      <dc:date>2017-06-20T04:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368578#M64978</link>
      <description>&lt;P&gt;When you get a client's file you probably save it on your computer.&lt;/P&gt;
&lt;P&gt;Do you know from whom you got it and for which month?&lt;/P&gt;
&lt;P&gt;Can you check that file data relate to that same month?&lt;/P&gt;
&lt;P&gt;Is it possible that the file contains data from more than one month?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you name the file? Can you recognize client and month according to file name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer "how to detect if files are same", your better have answers to those questions first,&lt;/P&gt;
&lt;P&gt;then use, as proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, PROC COMPARE to compare current file to lprevious&lt;/P&gt;
&lt;P&gt;if client and declared month are the same or suspicious to be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code for proc compare (there are more options):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare data = old_file_name
                compare = new_file_name;
    id  &amp;lt;list of ID variable names, assumed data is sorted by IDs &amp;gt;;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jun 2017 05:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368578#M64978</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-06-20T05:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368630#M64983</link>
      <description>&lt;P&gt;First, do you have a proper data import process, i.e. do you have an import agreement setup between you and the supplier? &amp;nbsp;If not this would be first port of call, without an agreement you will never know what you get, maybe next month they print the output, stick it onto the back of a cornflake box and post it to you?? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, in your post, you really give no information. &amp;nbsp;What type of file is it that is being sent. &amp;nbsp;What environment are you working in? &amp;nbsp; If its a text file and you have a version control system, then drop the file over the previous received file and then do a diff in the version control software. &amp;nbsp;If its a PDF file then use PDF diff. &amp;nbsp;If its a dataset then use proc compare.&lt;/P&gt;
&lt;P&gt;Can you see how from the above alone, providing enough information helps answer the question?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 08:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368630#M64983</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-20T08:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if files are the same</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368758#M64996</link>
      <description>&lt;P&gt;If this were a concern I would be strongly tempted to use an OS tool before reading into SAS. FC in windows from a command prompt for example.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-detect-if-files-are-the-same/m-p/368758#M64996</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-20T14:43:31Z</dc:date>
    </item>
  </channel>
</rss>

