<?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 question on right function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/question-on-right-function/m-p/482440#M72685</link>
    <description>&lt;P&gt;Trying to use Right function as below in my jsl code&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column("ORIG_MARK",Character,Nominal,Formula(Right(:result,(Contains(:result,"_",3)))));&lt;/P&gt;&lt;P&gt;The result of this statement is as below,but I intend to eliminate the "_" from every row in the ORIG_MARK column.How can I modify the above statement to accomplish this?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;result&lt;/TD&gt;&lt;TD&gt;ORIG_MARK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_A&lt;/TD&gt;&lt;TD&gt;_A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_B&lt;/TD&gt;&lt;TD&gt;_B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_C&lt;/TD&gt;&lt;TD&gt;_C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_D&lt;/TD&gt;&lt;TD&gt;_D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_E&lt;/TD&gt;&lt;TD&gt;_E&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:57:48 GMT</pubDate>
    <dc:creator>ENTHU</dc:creator>
    <dc:date>2023-06-09T16:57:48Z</dc:date>
    <item>
      <title>question on right function</title>
      <link>https://community.jmp.com/t5/Discussions/question-on-right-function/m-p/482440#M72685</link>
      <description>&lt;P&gt;Trying to use Right function as below in my jsl code&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column("ORIG_MARK",Character,Nominal,Formula(Right(:result,(Contains(:result,"_",3)))));&lt;/P&gt;&lt;P&gt;The result of this statement is as below,but I intend to eliminate the "_" from every row in the ORIG_MARK column.How can I modify the above statement to accomplish this?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;result&lt;/TD&gt;&lt;TD&gt;ORIG_MARK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_A&lt;/TD&gt;&lt;TD&gt;_A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_B&lt;/TD&gt;&lt;TD&gt;_B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_C&lt;/TD&gt;&lt;TD&gt;_C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_D&lt;/TD&gt;&lt;TD&gt;_D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ORIG_MARK_E&lt;/TD&gt;&lt;TD&gt;_E&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-on-right-function/m-p/482440#M72685</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2023-06-09T16:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: question on right function</title>
      <link>https://community.jmp.com/t5/Discussions/question-on-right-function/m-p/482478#M72686</link>
      <description>&lt;P&gt;Right(str, n) will return you right n characters of str. Contains(str, pattern, n) will return you first index of pattern in str starting from n. If you want to get string after last "_" I would use Word() or Substitute() to remove "ORIG_MARK_". If you want to use Right(), you will have to calculate the length of string you want get for example by using combination of Length() and Contains().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one option using Word():&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word(-1, :result, "_")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Scripting Index for examples.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:55:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-on-right-function/m-p/482478#M72686</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-04-27T17:55:51Z</dc:date>
    </item>
  </channel>
</rss>

