<?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 selecting first 5 numbers of a value and matching them with another column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/selecting-first-5-numbers-of-a-value-and-matching-them-with/m-p/431789#M68148</link>
    <description>&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;i want to do a new column, if the first 5 digits in batch_id are the same as the first 5 in batch_id_1 then true else false.&lt;/P&gt;&lt;P&gt;I can do the if statement but not sure how to select the first 5 digits.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jearls11_0-1635699455730.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37157iE57106DB48E67EC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jearls11_0-1635699455730.png" alt="jearls11_0-1635699455730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:04:10 GMT</pubDate>
    <dc:creator>jearls11</dc:creator>
    <dc:date>2023-06-09T18:04:10Z</dc:date>
    <item>
      <title>selecting first 5 numbers of a value and matching them with another column</title>
      <link>https://community.jmp.com/t5/Discussions/selecting-first-5-numbers-of-a-value-and-matching-them-with/m-p/431789#M68148</link>
      <description>&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;i want to do a new column, if the first 5 digits in batch_id are the same as the first 5 in batch_id_1 then true else false.&lt;/P&gt;&lt;P&gt;I can do the if statement but not sure how to select the first 5 digits.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jearls11_0-1635699455730.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37157iE57106DB48E67EC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jearls11_0-1635699455730.png" alt="jearls11_0-1635699455730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:04:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/selecting-first-5-numbers-of-a-value-and-matching-them-with/m-p/431789#M68148</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-09T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: selecting first 5 numbers of a value and matching them with another column</title>
      <link>https://community.jmp.com/t5/Discussions/selecting-first-5-numbers-of-a-value-and-matching-them-with/m-p/431797#M68150</link>
      <description>&lt;P&gt;You can use Left() to get characters from the start of string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here(1);

a = "123456789";
five_char = Left(a, 5);
show(five_char);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Oct 2021 17:34:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/selecting-first-5-numbers-of-a-value-and-matching-them-with/m-p/431797#M68150</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-31T17:34:26Z</dc:date>
    </item>
  </channel>
</rss>

