<?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 get number between 0 and 9 and letter between a and z which are not found in a variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-number-between-0-and-9-and-letter-between-a-and-z/m-p/730466#M38445</link>
    <description>&lt;P&gt;Please explain more about how you have the current data.&lt;/P&gt;
&lt;P&gt;If you have strings you might try the COMPRESS() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;601   data test;
602     length all some rest $36 ;
603     all = collate(rank('0'),rank('9'))||collate(rank('a'),rank('z'));
604     some='345bcdegh';
605     rest=compress(all,some);
606     put (_all_) (=/);
607   run;


all=0123456789abcdefghijklmnopqrstuvwxyz
some=345bcdegh
rest=0126789afijklmnopqrstuvwxyz
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Mar 2021 19:00:24 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-03-31T19:00:24Z</dc:date>
    <item>
      <title>How to get number between 0 and 9 and letter between a and z which are not found in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-number-between-0-and-9-and-letter-between-a-and-z/m-p/730456#M38444</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In one of my table, I was able to pick all the code that are used in our programs which may vary between 0 and 9 and between&lt;/P&gt;
&lt;P&gt;a and z.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if my codelist = 1 2 3 4 x y z then I would like to find a way to obtains the one that are not in our codelist such as&lt;/P&gt;
&lt;P&gt;0 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w.&amp;nbsp; How to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 18:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-number-between-0-and-9-and-letter-between-a-and-z/m-p/730456#M38444</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-03-31T18:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get number between 0 and 9 and letter between a and z which are not found in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-number-between-0-and-9-and-letter-between-a-and-z/m-p/730466#M38445</link>
      <description>&lt;P&gt;Please explain more about how you have the current data.&lt;/P&gt;
&lt;P&gt;If you have strings you might try the COMPRESS() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;601   data test;
602     length all some rest $36 ;
603     all = collate(rank('0'),rank('9'))||collate(rank('a'),rank('z'));
604     some='345bcdegh';
605     rest=compress(all,some);
606     put (_all_) (=/);
607   run;


all=0123456789abcdefghijklmnopqrstuvwxyz
some=345bcdegh
rest=0126789afijklmnopqrstuvwxyz
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 19:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-number-between-0-and-9-and-letter-between-a-and-z/m-p/730466#M38445</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-31T19:00:24Z</dc:date>
    </item>
  </channel>
</rss>

