<?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: JSL Query Table: Strange result in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722307#M90443</link>
    <description>&lt;P&gt;Hi Jim,&lt;BR /&gt;Thanks for your quick reply. Actually, I am trying to concatenate the results, of the query, from multiple tables. Let me try your suggestion. Please share if you have any thoughts on that.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 16:54:55 GMT</pubDate>
    <dc:creator>monir</dc:creator>
    <dc:date>2024-02-06T16:54:55Z</dc:date>
    <item>
      <title>JSL Query Table: Strange result</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722288#M90438</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;dirLoc=Pick Directory("Select a directory", "my directory");
			fileList = Files In Directory(dirLoc);
			dt1 = open(dirLoc || fileList[1]);
			dt1 &amp;lt;&amp;lt; Select Where( :Amount&amp;gt;=1000 );
			x=dt1&amp;lt;&amp;lt;Subset(Output Table Name("T1"));
			Close(dt1, NoSave);
			show(N Row(x));
			x &amp;lt;&amp;lt; Save("my directory\t1.jmp");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;I am trying a simple query with a sample data file. The query returns right set of results if there is any record satisfying the condition in "Where" clause. But, in case, there exist no record satisfying the condition, it returns all the records where expected result is an empty set. Even, when I try to see how many records (N Row()) in the resultant set, it shows the count of total records.&lt;BR /&gt;&lt;BR /&gt;Thanks for any suggestion and please let me know if I am missing anything.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:11:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722288#M90438</guid>
      <dc:creator>monir</dc:creator>
      <dc:date>2024-02-06T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Query Table: Strange result</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722301#M90440</link>
      <description>&lt;P&gt;I would handle this by checking to see if any rows were selected, and if so, then do the subset, and if not, then print out a message.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dirLoc = Pick Directory( "Select a directory", "my directory" );
fileList = Files In Directory( dirLoc );
dt1 = Open( dirLoc || fileList[1] );
dt1 &amp;lt;&amp;lt; Select Where( :Amount &amp;gt;= 1000 );
If( Length( dt1 &amp;lt;&amp;lt; get selected rows ) &amp;gt; 0,
	x = dt1 &amp;lt;&amp;lt; Subset( Output Table Name( "T1" ) );
	Close( dt1, NoSave );
	Show( N Row( x ) );
	x &amp;lt;&amp;lt; Save( "my directory\t1.jmp" );
,
	Show( "no rows selected" )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2024 16:16:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722301#M90440</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-06T16:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Query Table: Strange result</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722307#M90443</link>
      <description>&lt;P&gt;Hi Jim,&lt;BR /&gt;Thanks for your quick reply. Actually, I am trying to concatenate the results, of the query, from multiple tables. Let me try your suggestion. Please share if you have any thoughts on that.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 16:54:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Query-Table-Strange-result/m-p/722307#M90443</guid>
      <dc:creator>monir</dc:creator>
      <dc:date>2024-02-06T16:54:55Z</dc:date>
    </item>
  </channel>
</rss>

