<?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: function  to find out if a value exist in a variable or not in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/function-to-find-out-if-a-value-exist-in-a-variable-or-not/m-p/21484#M3475</link>
    <description>There isn't a single function that does it.  You will need to do some data step coding.&lt;BR /&gt;
&lt;BR /&gt;
The INDEX function can be used in a DATA step to find out if a specific string exists in a character variable.  You can set up an ARRAY to include all the character variables,&lt;BR /&gt;
ARRAY CharVar {*} _CHARACTER_;&lt;BR /&gt;
(I think that is the syntax.), and then use a DO loop to look at all the character variables.</description>
    <pubDate>Tue, 21 Apr 2009 14:20:42 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-04-21T14:20:42Z</dc:date>
    <item>
      <title>function  to find out if a value exist in a variable or not</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/function-to-find-out-if-a-value-exist-in-a-variable-or-not/m-p/21483#M3474</link>
      <description>which function in sas 9.1 can be used to find out if a value exist in a variable of a dataset or not?&lt;BR /&gt;
for example:&lt;BR /&gt;
   dataset:&lt;BR /&gt;
   rollno   name &lt;BR /&gt;
      1       anuj&lt;BR /&gt;
      2       ram&lt;BR /&gt;
      3       kamal&lt;BR /&gt;
    i need to check if 'ram' exist in variable name or not.</description>
      <pubDate>Tue, 21 Apr 2009 13:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/function-to-find-out-if-a-value-exist-in-a-variable-or-not/m-p/21483#M3474</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-21T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: function  to find out if a value exist in a variable or not</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/function-to-find-out-if-a-value-exist-in-a-variable-or-not/m-p/21484#M3475</link>
      <description>There isn't a single function that does it.  You will need to do some data step coding.&lt;BR /&gt;
&lt;BR /&gt;
The INDEX function can be used in a DATA step to find out if a specific string exists in a character variable.  You can set up an ARRAY to include all the character variables,&lt;BR /&gt;
ARRAY CharVar {*} _CHARACTER_;&lt;BR /&gt;
(I think that is the syntax.), and then use a DO loop to look at all the character variables.</description>
      <pubDate>Tue, 21 Apr 2009 14:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/function-to-find-out-if-a-value-exist-in-a-variable-or-not/m-p/21484#M3475</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-04-21T14:20:42Z</dc:date>
    </item>
  </channel>
</rss>

