<?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 treating  '-' as part of the word in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246680#M46179</link>
    <description>&lt;P&gt;The last name from following code is only "Anne". I want "Anne-marie" as last name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data test;
  name='Jen Anne-marie';
  first_name=scan(name,1);
  last_name=scan(name,2);
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Jan 2016 16:32:48 GMT</pubDate>
    <dc:creator>SAS_inquisitive</dc:creator>
    <dc:date>2016-01-28T16:32:48Z</dc:date>
    <item>
      <title>treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246680#M46179</link>
      <description>&lt;P&gt;The last name from following code is only "Anne". I want "Anne-marie" as last name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data test;
  name='Jen Anne-marie';
  first_name=scan(name,1);
  last_name=scan(name,2);
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246680#M46179</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-01-28T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246681#M46180</link>
      <description>&lt;P&gt;RTM.&lt;/P&gt;
&lt;P&gt;What's the third parameter to the SCAN() function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0jshdjy2z9zdzn1h7k90u99lyq6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0jshdjy2z9zdzn1h7k90u99lyq6.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246681#M46180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246682#M46181</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  name='Jen Anne-marie';
  first_name=scan(name,1);
  last_name=scan(name,2," ");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246682#M46181</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-28T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246686#M46183</link>
      <description>&lt;P&gt;Or the 4th parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  name='Jen Anne-marie';
  first_name=scan(name,1);
  &lt;STRONG&gt;last_name=scan(name,2,,'s');&lt;/STRONG&gt;
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246686#M46183</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T16:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246693#M46187</link>
      <description>@ Reeza, I wrongly thought space as one of the default delimiters, that's why I did not provide third parameter.</description>
      <pubDate>Thu, 28 Jan 2016 17:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246693#M46187</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-01-28T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: treating  '-' as part of the word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246695#M46188</link>
      <description>&lt;P&gt;It is the default delimiter, but only one of them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 17:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treating-as-part-of-the-word/m-p/246695#M46188</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T17:02:29Z</dc:date>
    </item>
  </channel>
</rss>

