<?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: Substring, Munger, or... formula? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8406#M8400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the &lt;A href="http://blogs.sas.com/content/jmp/2013/12/04/if-you-only-learn-one-formula-editor-function-word-is-the-one/"&gt;Word()&lt;/A&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Word( -2, :Column 1, "_." )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That formula will get you what you want. The "-2" argument says that the Word() function should find the second to last word using _ and . as delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 15:33:51 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2014-04-16T15:33:51Z</dc:date>
    <item>
      <title>Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8402#M8396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’ve been wrestling with a database problem for a couple of days and I’m stumped.&amp;nbsp; I wonder if any of you might be able to help?&amp;nbsp; I’m dealing with several hundred tables that include records for wildlife sites&amp;nbsp; For each record, there is a field that includes the site identifier appended to the path in my computer and a .tif suffix, like these examples: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;E:\Work\OWI\LIDAR\Owl_Landscapes\p99\p99sliced\rnd_SI_PK_&lt;EM&gt;&lt;STRONG&gt;UR3&lt;/STRONG&gt;&lt;/EM&gt;.tif &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;E:\Work\OWI\LIDAR\Owl_Landscapes\p99\p99sliced\rnd_SI_PK_&lt;EM&gt;&lt;STRONG&gt;20100195&lt;/STRONG&gt;&lt;/EM&gt;.tif &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;[Site identifier in bold italics] &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;I need to create a new field in each table that holds only the site identifier, minus the path and .tif suffix.&amp;nbsp; I’m somewhat familiar with substring and Munger formulas that I have used to extract parts of strings.&amp;nbsp; But in this case, some site identifiers have mixed text/numeric characters and the string length is different among different records, so I can’t get these formulas to work.&amp;nbsp; Can someone offer advice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:15:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8402#M8396</guid>
      <dc:creator>owiuser</dc:creator>
      <dc:date>2014-04-16T15:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8403#M8397</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;Check out perl regular expressions - base SAS = prxparse, prxchange etc.&amp;nbsp; Should be able to do this straightforward with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to add, it looks like you have a fixed start?&amp;nbsp; If so then tranwrd(substr(string,fixed_start),".tif","") should also work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:20:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8403#M8397</guid>
      <dc:creator>rw9</dc:creator>
      <dc:date>2014-04-16T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8404#M8398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using JMP or Base SAS to read these files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:29:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8404#M8398</guid>
      <dc:creator />
      <dc:date>2014-04-16T15:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8405#M8399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think standard SAS functions work in JMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substring is what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The starting point is fixed, find the location of the period and substring between those.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:33:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8405#M8399</guid>
      <dc:creator>reeza</dc:creator>
      <dc:date>2014-04-16T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8406#M8400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the &lt;A href="http://blogs.sas.com/content/jmp/2013/12/04/if-you-only-learn-one-formula-editor-function-word-is-the-one/"&gt;Word()&lt;/A&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Word( -2, :Column 1, "_." )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That formula will get you what you want. The "-2" argument says that the Word() function should find the second to last word using _ and . as delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:33:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8406#M8400</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2014-04-16T15:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Substring, Munger, or... formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8407#M8401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everybody! Jeff's suggestion worked perfectly.&amp;nbsp; Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:48:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Substring-Munger-or-formula/m-p/8407#M8401</guid>
      <dc:creator>owiuser</dc:creator>
      <dc:date>2014-04-16T15:48:55Z</dc:date>
    </item>
  </channel>
</rss>

