<?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: Find rows that contains specific text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113864#M39905</link>
    <description>Thanks! I remember there was some funky business with referring to columns, but I thought it was fixed. Apparently, it was fixed as "Column" --&amp;gt; "As Column"? :)&lt;/img&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Feb 2019 22:01:03 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2019-02-15T22:01:03Z</dc:date>
    <item>
      <title>Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113722#M39884</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got stuck on a seemingly easy step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table is compiled from multiple CSV files. Where those files were previously concatenated, there is one service row that is empty except first three columns where it says something like "### Switching Logging: datetime" in the first column and then from which file in second coumn and to what file in third column. So, a trash row that I want to delete. The only common thing about those rows is word "Switching" in the first column. Plus the name of&amp;nbsp;the first column has semicolon, something like index:date and I need to keep it that way.&amp;nbsp;How do I find and delete those rows without creating new columns?&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;db_test &amp;lt;&amp;lt; Get Rows Where (Contains("Switch", Column(1)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it doesn't work, apparently Contains() only takes columns that are refered to as&amp;nbsp;:columnname. But since I have ":" in the name of my column so I cante refer to it as ":index:date".&amp;nbsp;Even if I rename the column, it apparently doesn't work.&lt;/P&gt;&lt;P&gt;How to do this in one line?&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 01:35:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113722#M39884</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2019-02-15T01:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113725#M39887</link>
      <description>&lt;P&gt;Ok, it works this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;db_test &amp;lt;&amp;lt; Get Rows Where (Contains(:"DataIndex:date", "Switch"));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, if I put Column(1) instead of &amp;nbsp;:"DataIndex:date", it errors out. Any advice on how to refer to a column using its position only?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 02:02:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113725#M39887</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2019-02-15T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113726#M39888</link>
      <description>&lt;P&gt;I think this may be the solution you are looking for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
db_test  = Open( "$SAMPLE_DATA/big class.jmp" );


db_test &amp;lt;&amp;lt; get rows where(contains(as column(3),"F"))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 02:22:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113726#M39888</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-02-15T02:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113782#M39893</link>
      <description>&lt;P&gt;Jim's suggestion is the best solution.&amp;nbsp; As an&amp;nbsp;&lt;STRONG&gt;FYI&lt;/STRONG&gt;, attached is legacy syntax that was commonly used prior to &lt;STRONG&gt;As Column()&lt;/STRONG&gt;. You can use a column reference in a formula, however, you need empty brackets to represent the rows, the values of the column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
db_test  = Open( "$SAMPLE_DATA/big class.jmp" );


mycol =  Column("age");
xf = db_test &amp;lt;&amp;lt; get rows where(contains(column(3)[],"F"));
xm = db_test &amp;lt;&amp;lt; get rows where(contains(column("sex")[],"M"));
xa = db_test &amp;lt;&amp;lt; get rows where( mycol[]== 13);
show (xf, xm, xa);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 12:08:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113782#M39893</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-02-15T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113842#M39900</link>
      <description>&lt;P&gt;I think that this syntax might work, too:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;db_test &amp;lt;&amp;lt; Get Rows Where (Contains(Column(1)[ ], "Switch"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That is, use an empty subscript (square brackets) after the Column(1) function call.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:11:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113842#M39900</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-02-15T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113864#M39905</link>
      <description>Thanks! I remember there was some funky business with referring to columns, but I thought it was fixed. Apparently, it was fixed as "Column" --&amp;gt; "As Column"? :)&lt;/img&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:01:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113864#M39905</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2019-02-15T22:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find rows that contains specific text</title>
      <link>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113865#M39906</link>
      <description>Ok, all it took was changing Column to As Column. Awesome, thanks a lot!</description>
      <pubDate>Fri, 15 Feb 2019 22:01:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-rows-that-contains-specific-text/m-p/113865#M39906</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2019-02-15T22:01:58Z</dc:date>
    </item>
  </channel>
</rss>

