<?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 capture character variable data containing space in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-capture-character-variable-data-containing-space/m-p/407241#M99217</link>
    <description>&lt;P&gt;Why do you want to have 226 included? There's no blank at the beginning or in the middle, only at the end.&lt;/P&gt;
&lt;P&gt;Checking a SAS character variable for trailing blanks makes no sense, as _all_ SAS character variables have trailing blanks (unless they're completely filled). "Empty" character variables contain blanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find the others, you might want to check&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if indexc(trim(countryname),' ') &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2017 13:07:13 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-10-25T13:07:13Z</dc:date>
    <item>
      <title>how to capture character variable data containing space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-capture-character-variable-data-containing-space/m-p/407229#M99215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the attached sheet, I want to read the data into SAS environment and then find all country id with extra space in the beginning or middle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to proceed. My output would be country id 222, 223 and 226&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 12:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-capture-character-variable-data-containing-space/m-p/407229#M99215</guid>
      <dc:creator>Abraham</dc:creator>
      <dc:date>2017-10-25T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture character variable data containing space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-capture-character-variable-data-containing-space/m-p/407241#M99217</link>
      <description>&lt;P&gt;Why do you want to have 226 included? There's no blank at the beginning or in the middle, only at the end.&lt;/P&gt;
&lt;P&gt;Checking a SAS character variable for trailing blanks makes no sense, as _all_ SAS character variables have trailing blanks (unless they're completely filled). "Empty" character variables contain blanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find the others, you might want to check&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if indexc(trim(countryname),' ') &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-capture-character-variable-data-containing-space/m-p/407241#M99217</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-25T13:07:13Z</dc:date>
    </item>
  </channel>
</rss>

