dirLoc=Pick Directory("Select a directory", "my directory");
fileList = Files In Directory(dirLoc);
dt1 = open(dirLoc || fileList[1]);
dt1 << Select Where( :Amount>=1000 );
x=dt1<<Subset(Output Table Name("T1"));
Close(dt1, NoSave);
show(N Row(x));
x << Save("my directory\t1.jmp");
Greetings!
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.
Thanks for any suggestion and please let me know if I am missing anything.