<?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: Splitting a numeric variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-a-numeric-variable/m-p/47704#M12837</link>
    <description>Use the PUT function to convert the number into a formatted string and then you can use the SUBSTR function to pull out the piece.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Mon, 11 Apr 2011 15:30:19 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-04-11T15:30:19Z</dc:date>
    <item>
      <title>Splitting a numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-a-numeric-variable/m-p/47703#M12836</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I have a simple question. If I have a numeric variable of a certain length, how can I select only certain digits of this variable into a new variable in a PROC SQL step? I am looking for a function similar to SUBSTRN for strings that would let me select, say, the left-hand 3 digits of a nine-digit number, or the digits 4 through 6 of this number.....&lt;BR /&gt;
&lt;BR /&gt;
Many thanks, &lt;BR /&gt;
R.</description>
      <pubDate>Mon, 11 Apr 2011 14:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-a-numeric-variable/m-p/47703#M12836</guid>
      <dc:creator>rdwest</dc:creator>
      <dc:date>2011-04-11T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-a-numeric-variable/m-p/47704#M12837</link>
      <description>Use the PUT function to convert the number into a formatted string and then you can use the SUBSTR function to pull out the piece.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Mon, 11 Apr 2011 15:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-a-numeric-variable/m-p/47704#M12837</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-04-11T15:30:19Z</dc:date>
    </item>
  </channel>
</rss>

