<?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: Need to query for a variable value that only contains a single word in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570694#M12008</link>
    <description>Are you looking for COUNTW function?&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Jul 2019 18:31:13 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2019-07-02T18:31:13Z</dc:date>
    <item>
      <title>Need to query for a variable value that only contains a single word</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570686#M12006</link>
      <description>&lt;P&gt;I need to query a name variable and the user wants to know if the name is only a single word.&amp;nbsp; The variable contains business names so should have multiple words. How do I do that.. for the specific words I am using index(lowercase(name), "Corp")&amp;gt;0 but I do not know how to query for a singer word, no matter what it is.&amp;nbsp; The name field is Char 26.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance you can offer will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Elliott&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570686#M12006</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2019-07-02T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to query for a variable value that only contains a single word</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570694#M12008</link>
      <description>Are you looking for COUNTW function?&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570694#M12008</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-07-02T18:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to query for a variable value that only contains a single word</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570700#M12010</link>
      <description>&lt;P&gt;no, I need to identify if the business name is only a single word, no matter how many characters.&amp;nbsp; The user feels this may be an invalid name and wants to review the information.&amp;nbsp; They feel a single name with no spaces is an invalid business name and should be flagged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570700#M12010</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2019-07-02T18:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need to query for a variable value that only contains a single word</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570709#M12012</link>
      <description>COUNTW counts words, not characters.  CountW(VarName)=1 sounds like the condition you're looking for.</description>
      <pubDate>Tue, 02 Jul 2019 19:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570709#M12012</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-07-02T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to query for a variable value that only contains a single word</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570722#M12014</link>
      <description>&lt;P&gt;COUNTW() is correct, please try it and let us know. If it's not, post the code you've tried and show an example of a case it doesn't find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17300"&gt;@Elliott&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;no, I need to identify if the business name is only a single word, no matter how many characters.&amp;nbsp; The user feels this may be an invalid name and wants to review the information.&amp;nbsp; They feel a single name with no spaces is an invalid business name and should be flagged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 19:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-query-for-a-variable-value-that-only-contains-a-single/m-p/570722#M12014</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-02T19:16:38Z</dc:date>
    </item>
  </channel>
</rss>

