<?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 of observation in single SAS data file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156133#M40947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are ways to make proc compare do that, but you'll need to replicate your dataset and indicate which rows are compared against which.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It's probably easier to go with a manual data step or a sql step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want further advice, you'll need to provide more detailed information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 17:17:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-03-25T17:17:56Z</dc:date>
    <item>
      <title>comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156130#M40944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;usually we use Proc Compare for comparing two sas datasets and their observation, variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way we can compare the observation with in single sas datasets with eachother ? which procedure we use ? what is syntax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know ASAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156130#M40944</guid>
      <dc:creator>Vijendra_SAS</dc:creator>
      <dc:date>2014-03-25T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156131#M40945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That depends on what you're trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to do? Compare one variable against another variable? Compare one row against a different/all rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156131#M40945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-25T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156132#M40946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; I am comparing one row against another row.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156132#M40946</guid>
      <dc:creator>Vijendra_SAS</dc:creator>
      <dc:date>2014-03-25T17:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156133#M40947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are ways to make proc compare do that, but you'll need to replicate your dataset and indicate which rows are compared against which.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It's probably easier to go with a manual data step or a sql step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want further advice, you'll need to provide more detailed information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156133#M40947</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-25T17:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156134#M40948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have file , I couldnot attach it to conversation.. let me know your mail id.. I can send it across.. and we can discuss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156134#M40948</guid>
      <dc:creator>Vijendra_SAS</dc:creator>
      <dc:date>2014-03-25T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156135#M40949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No thanks, attach here (edit your first post), or preferably recreate a simple sample that you can paste into the window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE usually won't allow you to paste, so you might need to use FireFox or Chrome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156135#M40949</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-25T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156136#M40950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to attach file in my first post, you may refer there , about what I want to know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156136#M40950</guid>
      <dc:creator>Vijendra_SAS</dc:creator>
      <dc:date>2014-03-25T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156137#M40951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attached file , I want to check if Field_Name across all the Form_Name have same definition or not ? if its varies even by space, comma or fullstop , my SAS program should give me out file with those difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have applied filter , just for convenience of your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know which function I can use ?&amp;nbsp; ( I am aware of lag function.. but not able to put inform of sytax )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156137#M40951</guid>
      <dc:creator>Vijendra_SAS</dc:creator>
      <dc:date>2014-03-25T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156138#M40952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="2263" __jive_macro_name="document" class="jive_macro jive_macro_document" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't specify what you want your output to look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort your data by Field_Name and use first./last. processing in addition to the definition. If the definition varies while the field name is the same it will flag it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is quite right, but you can review the first/last processing and see what works for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have; by form_name field_name definition; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;by form_name field_name;&lt;/P&gt;&lt;P&gt;if first.field_name and not (first.definition and last.definition) then flag=1;&lt;/P&gt;&lt;P&gt;else flag=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156138#M40952</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-25T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: comparing of observation in single SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156139#M40953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe what you really want is as simple as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; tables field_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, it might be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; tables form_name * field_name / missing list;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't point out which rows you need to fix, but it will find the spelling variations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comparing-of-observation-in-single-SAS-data-file/m-p/156139#M40953</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-03-25T18:11:01Z</dc:date>
    </item>
  </channel>
</rss>

