<?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: Deleting rows using JSL scripts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2685#M2685</link>
    <description>&lt;P&gt;Here is one way to do it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
For Each Row( Row State() = Selected State( criteriacolumn[] == criteria ) );
dt &amp;lt;&amp;lt; delete rows();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jan 2017 17:59:41 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2017-01-04T17:59:41Z</dc:date>
    <item>
      <title>Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2684#M2684</link>
      <description>How can we delete rows from a data table (using JMP script) when some columns in this data table satisfy a particular criteria?&lt;BR /&gt;&lt;BR /&gt;Using Delete Rows is not working for me in my script.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 06 Dec 2010 22:02:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2684#M2684</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2010-12-06T22:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2685#M2685</link>
      <description>&lt;P&gt;Here is one way to do it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
For Each Row( Row State() = Selected State( criteriacolumn[] == criteria ) );
dt &amp;lt;&amp;lt; delete rows();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:59:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2685#M2685</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-01-04T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2686#M2686</link>
      <description>Thanks MS, it works.</description>
      <pubDate>Mon, 06 Dec 2010 22:39:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2686#M2686</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2010-12-06T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2687#M2687</link>
      <description>&lt;P&gt;Here's another way. I don't know if it's any faster.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where(:N &amp;lt; min_case_value);
dt &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:00:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2687#M2687</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-01-04T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2688#M2688</link>
      <description>&amp;gt; Here's another way.  I don't know if it's any&lt;BR /&gt;&amp;gt; faster.&lt;BR /&gt;&lt;BR /&gt;Well I made a table with 6 columns and 100,000 rows and the For solution took about 1 second and the direct select took "0" seconds.&lt;BR /&gt;&lt;BR /&gt;When I increased the number of rows to 1,000,000 then the For solution took 11 or 12 seconds and the direct select took 3 seconds.&lt;BR /&gt;&lt;BR /&gt;So on my pc running winXP using this particular table the direct select is about 4 times faster but you would need a really large table to notice the difference.&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 07 Dec 2010 21:26:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2688#M2688</guid>
      <dc:creator>mpb</dc:creator>
      <dc:date>2010-12-07T21:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows using JSL scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2689#M2689</link>
      <description>Thanks!&lt;BR /&gt;&lt;BR /&gt;Fast is good. The direct method has also the advantage that easier to read (and remember).&lt;BR /&gt;&lt;BR /&gt;The loop method still is useful when you need to set other or combined row states.</description>
      <pubDate>Wed, 08 Dec 2010 08:23:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-rows-using-JSL-scripts/m-p/2689#M2689</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2010-12-08T08:23:29Z</dc:date>
    </item>
  </channel>
</rss>

