<?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 String Function to lookup certain character? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43889#M8998</link>
    <description>Thankyou Linus  - that worked.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
Shelton.</description>
    <pubDate>Thu, 04 Sep 2008 22:24:50 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-09-04T22:24:50Z</dc:date>
    <item>
      <title>SAS String Function to lookup certain character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43887#M8996</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I want to delete from an input dataset whenever a certain record contains the - (dash) character.&lt;BR /&gt;
&lt;BR /&gt;
For example, Serial Number 125345-5545&lt;BR /&gt;
&lt;BR /&gt;
So, if there is such a serial number like this, I want to exclude it from the input dataset&lt;BR /&gt;
&lt;BR /&gt;
DATA XXXX;&lt;BR /&gt;
INPUT YYYY;&lt;BR /&gt;
@01  Serial  $10.&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
Is there a string function that parses "Serial" in this case such that I can say something like this:&lt;BR /&gt;
&lt;BR /&gt;
if SomeStringFunction(Serial,"-") then delete;&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Shelton.</description>
      <pubDate>Thu, 04 Sep 2008 10:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43887#M8996</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-04T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS String Function to lookup certain character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43888#M8997</link>
      <description>if index(serial,'-') then delete;&lt;BR /&gt;
&lt;BR /&gt;
would probably do the job.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 04 Sep 2008 11:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43888#M8997</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-04T11:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS String Function to lookup certain character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43889#M8998</link>
      <description>Thankyou Linus  - that worked.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
Shelton.</description>
      <pubDate>Thu, 04 Sep 2008 22:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-String-Function-to-lookup-certain-character/m-p/43889#M8998</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-04T22:24:50Z</dc:date>
    </item>
  </channel>
</rss>

