<?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 Scan function with space as delimiter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874511#M345528</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please let me know what these two scan function do with space as a delimiter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstName = Scan(MemberName, 1, " ");&lt;/P&gt;
&lt;P&gt;LastName = Scan(MemberLast, 2, " ");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 19:06:47 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2023-05-08T19:06:47Z</dc:date>
    <item>
      <title>Scan function with space as delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874511#M345528</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please let me know what these two scan function do with space as a delimiter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstName = Scan(MemberName, 1, " ");&lt;/P&gt;
&lt;P&gt;LastName = Scan(MemberLast, 2, " ");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 19:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874511#M345528</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-05-08T19:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scan function with space as delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874516#M345531</link>
      <description>&lt;P&gt;Maxim 1: Read the Documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0jshdjy2z9zdzn1h7k90u99lyq6.htm" target="_blank" rel="noopener"&gt;SCAN Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and Maxim 4: Do a Test Run. Feed some strings to these function calls and see what happens.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 19:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874516#M345531</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-08T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scan function with space as delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874559#M345542</link>
      <description>&lt;P&gt;Without example values for Membername or Memberlast which should I guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"result" can be interesting depending on other characters in the variable and which position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give me actual values I can tell you. But I'm not going to guess because there are way too many possible results from missing to equal to the variable depending on the actual values that it isn't worth trying to list all of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus depending on the character encoding you might actually need Kscan.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874559#M345542</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-08T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scan function with space as delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874592#M345569</link>
      <description>&lt;P&gt;The two assignment statements are both asking SAS to parse the value of the variable pass to them into "words" based on considering blanks as the delimiter between the words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one is taking the first word it finds.&lt;/P&gt;
&lt;P&gt;The second one is taking the second word it finds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the two assignment statements are taking the words from two DIFFERENT variables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one is reading from the variable MEMBERNAME and the second one is reading from the variable MEMBERLAST.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 03:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-function-with-space-as-delimiter/m-p/874592#M345569</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-09T03:15:24Z</dc:date>
    </item>
  </channel>
</rss>

