<?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: Extract first 8 digits left of the number in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174281#M44825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This variable is character or numeric ?Assuming it is character.&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;length want $ 8;&lt;/P&gt;&lt;P&gt;want=variable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 13:17:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-08-25T13:17:13Z</dc:date>
    <item>
      <title>Extract first 8 digits left of the number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174280#M44824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to pull out the first 8 digits to the left of the number........the numbers marked in yellow should be discarded.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 141px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="77"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="77"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;29599933&lt;SPAN style="background: yellow;"&gt;5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="77"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;29599933&lt;SPAN style="background: yellow;"&gt;3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="77"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;29599933&lt;SPAN style="background: yellow;"&gt;6&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="77"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;29599933&lt;SPAN style="background: yellow;"&gt;7&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174280#M44824</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-08-25T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract first 8 digits left of the number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174281#M44825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This variable is character or numeric ?Assuming it is character.&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;length want $ 8;&lt;/P&gt;&lt;P&gt;want=variable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174281#M44825</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-08-25T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract first 8 digits left of the number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174282#M44826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks...Can you suggest a solution if the variable is Numeric....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174282#M44826</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2014-08-25T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract first 8 digits left of the number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174283#M44827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For numeric you can try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;want=int(variable/10);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-first-8-digits-left-of-the-number/m-p/174283#M44827</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-25T13:45:43Z</dc:date>
    </item>
  </channel>
</rss>

