<?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: How to select columns which start with specific names in JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/657502#M84676</link>
    <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 01:15:38 GMT</pubDate>
    <dc:creator>SING</dc:creator>
    <dc:date>2023-07-12T01:15:38Z</dc:date>
    <item>
      <title>How to select columns which start with specific names in JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/656424#M84546</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some problem when I want to select some specific columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there have column header with "RD123", "RD345", "123RD"...etc.&lt;/P&gt;&lt;P&gt;I want to select the column only start with "RD", and the only script I know is below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt = Current Data Table();&lt;BR /&gt;colList= dt &amp;lt;&amp;lt; get column names( string );&lt;BR /&gt;For( i = 1, i &amp;lt;= N Items( colList ), i++,&lt;BR /&gt;If( Contains(colList [i], "RD")) &amp;lt;&amp;lt; set selected)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to modify the script to select only "RD123" and "RD345"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 08:38:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/656424#M84546</guid>
      <dc:creator>SING</dc:creator>
      <dc:date>2023-07-07T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to select columns which start with specific names in JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/656468#M84550</link>
      <description>&lt;P&gt;You could use Starts With instead of Contains.&amp;nbsp;Also it might be easier to first filter down to the list of columns of interest and then select those using &amp;lt;&amp;lt; Select Columns. Below is one example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

all_colnames = dt &amp;lt;&amp;lt; Get Column Names("String");
cols_of_interest = Filter Each({col_name}, all_colnames, Starts With(col_name, "NPN"));

dt &amp;lt;&amp;lt; Select Columns(cols_of_interest);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2023 09:36:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/656468#M84550</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-07T09:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to select columns which start with specific names in JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/657502#M84676</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 01:15:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-which-start-with-specific-names-in-JSL/m-p/657502#M84676</guid>
      <dc:creator>SING</dc:creator>
      <dc:date>2023-07-12T01:15:38Z</dc:date>
    </item>
  </channel>
</rss>

