<?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 get the various pattern of of string in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923634#M44595</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Information into SAS dataset may not be entered with the same format, specially for policy number.&lt;/P&gt;
&lt;P&gt;In the same dataset we could have those policy numbers&lt;/P&gt;
&lt;P&gt;M49999999&lt;/P&gt;
&lt;P&gt;P4M49999999&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;123-4567&lt;/P&gt;
&lt;P&gt;123A4567&lt;/P&gt;
&lt;P&gt;So is there a way to get the various policy number parttern such as;&lt;/P&gt;
&lt;P&gt;Cnnnnnnnn&lt;/P&gt;
&lt;P&gt;Cncnnnnnnnn&lt;/P&gt;
&lt;P&gt;nnnsnnnm&lt;/P&gt;
&lt;P&gt;Nnncnnnn&lt;/P&gt;
&lt;P&gt;Where n is numeric, c character and s is a special character such as –&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 14:44:26 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-04-09T14:44:26Z</dc:date>
    <item>
      <title>How to get the various pattern of of string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923634#M44595</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Information into SAS dataset may not be entered with the same format, specially for policy number.&lt;/P&gt;
&lt;P&gt;In the same dataset we could have those policy numbers&lt;/P&gt;
&lt;P&gt;M49999999&lt;/P&gt;
&lt;P&gt;P4M49999999&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;123-4567&lt;/P&gt;
&lt;P&gt;123A4567&lt;/P&gt;
&lt;P&gt;So is there a way to get the various policy number parttern such as;&lt;/P&gt;
&lt;P&gt;Cnnnnnnnn&lt;/P&gt;
&lt;P&gt;Cncnnnnnnnn&lt;/P&gt;
&lt;P&gt;nnnsnnnm&lt;/P&gt;
&lt;P&gt;Nnncnnnn&lt;/P&gt;
&lt;P&gt;Where n is numeric, c character and s is a special character such as –&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923634#M44595</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-09T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the various pattern of of string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923635#M44596</link>
      <description>&lt;P&gt;Maybe something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    input column $20.;
    datalines;
M49999999
P4M49999999
123-4567
123A4567
;
run;
data want;
set have;
from='ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 -)(*&amp;amp;^%$#@!{}[]:;.,/?\|';
to  ='CCCCCCCCCCCCCCCCCCCCCCCCCCNNNNNNNNNNSSSSSSSSSSSSSSSSSSSSSSSS';
pattern=translate(upcase(column),to,from);
drop from to;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923635#M44596</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-04-09T14:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the various pattern of of string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923639#M44598</link>
      <description>&lt;P&gt;I don't know what it means to "get" a policy number pattern.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923639#M44598</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-09T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the various pattern of of string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923644#M44599</link>
      <description>Original as solution. I have never though about this approach</description>
      <pubDate>Tue, 09 Apr 2024 15:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-various-pattern-of-of-string/m-p/923644#M44599</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-09T15:44:38Z</dc:date>
    </item>
  </channel>
</rss>

