<?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 extract first 3 letters and last letter by using proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/444017#M111118</link>
    <description>&lt;P&gt;Its only 3 letters:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 07:06:37 GMT</pubDate>
    <dc:creator>vraj1</dc:creator>
    <dc:date>2018-03-09T07:06:37Z</dc:date>
    <item>
      <title>How to extract first 3 letters and last letter by using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443702#M111028</link>
      <description>&lt;P&gt;I have a variable which has values like "magnum 1", "&lt;SPAN&gt;magnum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2" "&lt;SPAN&gt;magnum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;3". I need to extract first3 and last number like "MAG1"&lt;/P&gt;
&lt;P&gt;"MAG2". How can i do this in proc sql?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443702#M111028</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2018-03-08T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract first 3 letters and last letter by using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443704#M111030</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
SELECT upcase(cats(substr(x,1,3),substr(x,length(x)-1)))
FROM have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443704#M111030</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-03-08T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract first 3 letters and last letter by using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443834#M111078</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62004"&gt;@vraj1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a variable which has values like "magnum 1", "&lt;SPAN&gt;magnum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2" "&lt;SPAN&gt;magnum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;3". I need to extract first3 and last number like "MAG1"&lt;/P&gt;
&lt;P&gt;"MAG2". How can i do this in proc sql?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you have any values with fewer than 4 characters?&lt;/P&gt;
&lt;P&gt;If you have "mag" as a value your rule would create "magg".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 17:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/443834#M111078</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-08T17:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract first 3 letters and last letter by using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/444017#M111118</link>
      <description>&lt;P&gt;Its only 3 letters:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 07:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-first-3-letters-and-last-letter-by-using-proc-sql/m-p/444017#M111118</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2018-03-09T07:06:37Z</dc:date>
    </item>
  </channel>
</rss>

