<?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: How to determine values at specific locations` in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4333#M1372</link>
    <description>Thank you,Cynthia, for your always informative reply!  That was what we needed.</description>
    <pubDate>Mon, 27 Aug 2007 17:51:15 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-08-27T17:51:15Z</dc:date>
    <item>
      <title>How to determine values at specific locations`</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4331#M1370</link>
      <description>Using the LIKE operator in Proc Sql, is there a way to determine if certain values exist in a field at a certain location?  Example, I want to determine if the value XYZ exists in a field, starting at position 4.  Such as, AAAXYZ, ABCXYZ, DEFXYZ, GHIWWW, JKLTTT, MNOXYZ.&lt;BR /&gt;
&lt;BR /&gt;
Would I use something like this:  IF Field LIKE '%%%XYZ%' ?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance!</description>
      <pubDate>Mon, 27 Aug 2007 16:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4331#M1370</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-27T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine values at specific locations`</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4332#M1371</link>
      <description>Hi:&lt;BR /&gt;
If you look in the SAS documentation for the LIKE operator, you will find that the percent sign (%) is the wild card indicator for any number of characters, while the underscore (_) is the wild card indicator for a SINGLE character.&lt;BR /&gt;
&lt;BR /&gt;
You will need to be careful with your comparison because there is a difference between having a % at the end of the quoted string&lt;BR /&gt;
[pre]&lt;BR /&gt;
where charvar like '___XYZ';  /* 3 underscores */&lt;BR /&gt;
where charvar like '___XYZ%'; /* 3 underscores XYZ % */&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
depending on whether your character variable is EXACTLY 6 characters long or is greater than 6 characters.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 27 Aug 2007 17:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4332#M1371</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-27T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine values at specific locations`</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4333#M1372</link>
      <description>Thank you,Cynthia, for your always informative reply!  That was what we needed.</description>
      <pubDate>Mon, 27 Aug 2007 17:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-determine-values-at-specific-locations/m-p/4333#M1372</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-27T17:51:15Z</dc:date>
    </item>
  </channel>
</rss>

