<?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 How to ignore accented text? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140883#M28334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to merge two SAS files, one of which has names with accent marks, the other has same names but unaccented.&amp;nbsp; How can I get SAS to ignore the accents while merging?&amp;nbsp; (I don't care if they're lost.)&amp;nbsp; I've tried wading through the National Language Support documentation, but am not finding anything.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2014 18:21:44 GMT</pubDate>
    <dc:creator>DebbiBJ</dc:creator>
    <dc:date>2014-01-14T18:21:44Z</dc:date>
    <item>
      <title>How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140883#M28334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to merge two SAS files, one of which has names with accent marks, the other has same names but unaccented.&amp;nbsp; How can I get SAS to ignore the accents while merging?&amp;nbsp; (I don't care if they're lost.)&amp;nbsp; I've tried wading through the National Language Support documentation, but am not finding anything.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140883#M28334</guid>
      <dc:creator>DebbiBJ</dc:creator>
      <dc:date>2014-01-14T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140884#M28335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there is no general function for dealing with accented characters. You can either create an intermediary dataset with a new variable and use a datastep merge, or use SQL and join on an expression.&lt;/P&gt;&lt;P&gt;You don't say what language your accented characters come from. A solution corresponding to the French language would be to match on a variable/expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;matchString = translate(lowcase(accentedString),"aaceeeeiiouu","àâçéèêëîïôùû");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140884#M28335</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-01-14T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140885#M28336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dataset is in English, but because there are first and last names, the accents can come from various languages.&amp;nbsp; But I think they're mostly generic French/Spanish accents.&amp;nbsp; Thanks for the suggestion; I'll give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140885#M28336</guid>
      <dc:creator>DebbiBJ</dc:creator>
      <dc:date>2014-01-14T18:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140886#M28337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Demonstrate that the DATA STEP is sensitive to linguistic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; collating sequences and this can be used to perform a merge&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; that is insensitive to case or accents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Here, we're merging/joining two data sets, one containing &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; monthly revenue with another containing a monthly count of &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; customers, to calculate revenue per customer.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data clients;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length mois $ 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines delimiter=','; &lt;/P&gt;&lt;P&gt;&amp;nbsp; input mois compte;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;&amp;nbsp; janvier, 370&lt;/P&gt;&lt;P&gt;&amp;nbsp; février, 400&lt;/P&gt;&lt;P&gt;&amp;nbsp; mars, 430&lt;/P&gt;&lt;P&gt;&amp;nbsp; avril, 415&lt;/P&gt;&lt;P&gt;&amp;nbsp; mai, 410&lt;/P&gt;&lt;P&gt;&amp;nbsp; juin, 450&lt;/P&gt;&lt;P&gt;&amp;nbsp; juillet, 449&lt;/P&gt;&lt;P&gt;&amp;nbsp; août, 403&lt;/P&gt;&lt;P&gt;&amp;nbsp; septembre, 339&lt;/P&gt;&lt;P&gt;&amp;nbsp; novembre, 375&lt;/P&gt;&lt;P&gt;&amp;nbsp; décembre, 370&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data revenu;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length mois $ 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines delimiter=','; &lt;/P&gt;&lt;P&gt;&amp;nbsp; input mois ventes;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;&amp;nbsp; JANVIER, 376784&lt;/P&gt;&lt;P&gt;&amp;nbsp; FEVRIER, 396911&lt;/P&gt;&lt;P&gt;&amp;nbsp; MARS, 441327&lt;/P&gt;&lt;P&gt;&amp;nbsp; AVRIL, 419272&lt;/P&gt;&lt;P&gt;&amp;nbsp; MAI, 408291&lt;/P&gt;&lt;P&gt;&amp;nbsp; JUIN, 443791&lt;/P&gt;&lt;P&gt;&amp;nbsp; JUILLET, 442111&lt;/P&gt;&lt;P&gt;&amp;nbsp; AOUT, 402771&lt;/P&gt;&lt;P&gt;&amp;nbsp; SEPTEMBRE, 337727&lt;/P&gt;&lt;P&gt;&amp;nbsp; NOVEMBRE, 381929&lt;/P&gt;&lt;P&gt;&amp;nbsp; DECEMBRE, 376771&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=clients sortseq=linguistic(strength=1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; by mois;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=revenu sortseq=linguistic(strength=1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; by mois;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data resultat;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge clients revenu;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by mois;&lt;/P&gt;&lt;P&gt;&amp;nbsp; revenuparclient = ventes/compte;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140886#M28337</guid>
      <dc:creator>scmebu</dc:creator>
      <dc:date>2014-01-15T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140887#M28338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp; This alternate approach will also be useful to me in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140887#M28338</guid>
      <dc:creator>DebbiBJ</dc:creator>
      <dc:date>2014-01-15T16:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140888#M28339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked great!&amp;nbsp; (Once I found an extended character map)&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140888#M28339</guid>
      <dc:creator>DebbiBJ</dc:creator>
      <dc:date>2014-01-15T16:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore accented text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140889#M28340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, a similar approach can be taken with PROC SQL and a join using the SORTKEY function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 17:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-ignore-accented-text/m-p/140889#M28340</guid>
      <dc:creator>scmebu</dc:creator>
      <dc:date>2014-01-15T17:34:24Z</dc:date>
    </item>
  </channel>
</rss>

