<?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: select values from proc compare in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589735#M75955</link>
    <description>Post an actual example.  For example take the one you are currently look at:  eliminate all variables except the one you are currently checking, and any ID variables required to get PROC COMPARE to run ;  eliminate all observations except one that matches exactly and one that produces the '...XXX...' value you are having trouble finding.  Then post that as self contained code that others can run to reproduce your issue.  Or just make up some data to test with.&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Sep 2019 16:49:44 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-09-18T16:49:44Z</dc:date>
    <item>
      <title>select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589630#M75945</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to select each values changed between base &amp;amp; compare dataset out by proc compare outnoequal ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if value equal to ' X.....'&amp;nbsp; then select variable and row for this values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to select this value to update into another dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589630#M75945</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2019-09-18T12:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589631#M75946</link>
      <description>&lt;P&gt;Can you demonstrate this logic by an example?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589631#M75946</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-18T12:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589639#M75948</link>
      <description>in outnoequal dataset from proc compare. if value had changed it's equal to 'XXX......' . i want to select that value from _COMP_ to update another dataset by the value changed , to do that exacytly i need to find the variable and id of this changed value .. any suggestions. may be have an easy way</description>
      <pubDate>Wed, 18 Sep 2019 13:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589639#M75948</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2019-09-18T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589642#M75949</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11076"&gt;@amager&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;in outnoequal dataset from proc compare. if value had changed it's equal to 'XXX......' . i want to select that value from _COMP_ to update another dataset by the value changed , to do that exacytly i need to find the variable and id of this changed value .. any suggestions. may be have an easy way&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Provide an EXAMPLE.&amp;nbsp; Post two data steps that can be used to create two datasets. Post the PROC COMPARE code to compare them and create an output dataset.&amp;nbsp; Show what the resulting output looks like. Explain what you want to select from this dataset. Explain what format you need it in if the way PROC COMPARE creates it is different from how you need it.&amp;nbsp; Then perhaps someone can help you.&amp;nbsp; But most likely just doing that will show you how to solve the problem yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 13:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589642#M75949</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-18T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589708#M75950</link>
      <description>I modified my questions how can i found expressions in variables like : &lt;BR /&gt;.......X....&lt;BR /&gt;X...........&lt;BR /&gt;...........X&lt;BR /&gt;XXXXXXXX....&lt;BR /&gt;........XX..&lt;BR /&gt;........XXXX&lt;BR /&gt;XXXXXXXXXXXX&lt;BR /&gt;and not like &lt;BR /&gt;............&lt;BR /&gt;X1225112.........&lt;BR /&gt;which functions can do it exactly ? or i need regular expressions ?? any help</description>
      <pubDate>Wed, 18 Sep 2019 15:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589708#M75950</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2019-09-18T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589715#M75951</link>
      <description>&lt;P&gt;So if the variable is named FRED then check if it contains any X characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if indexc(fred,'X') then ....&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2019 15:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589715#M75951</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-18T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589721#M75952</link>
      <description>Thanks for your help &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; , but this can find also 'X1225112.........'</description>
      <pubDate>Wed, 18 Sep 2019 16:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589721#M75952</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2019-09-18T16:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589724#M75953</link>
      <description>That value will NOT be possible in the DIFF output. It will only have periods or X.  There is another variable that can be checked to test which type of observation you have.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2019 16:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589724#M75953</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-18T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589733#M75954</link>
      <description>you are RIGHT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; , i Just Chked it but still don't select value with more 'XX' like '.......XXX.....' ,</description>
      <pubDate>Wed, 18 Sep 2019 16:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589733#M75954</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2019-09-18T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: select values from proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589735#M75955</link>
      <description>Post an actual example.  For example take the one you are currently look at:  eliminate all variables except the one you are currently checking, and any ID variables required to get PROC COMPARE to run ;  eliminate all observations except one that matches exactly and one that produces the '...XXX...' value you are having trouble finding.  Then post that as self contained code that others can run to reproduce your issue.  Or just make up some data to test with.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2019 16:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/select-values-from-proc-compare/m-p/589735#M75955</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-18T16:49:44Z</dc:date>
    </item>
  </channel>
</rss>

