cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
zetaVagabond1
Level III

Subset Table Keeps Showing Old Rows – How to Clear Memory Between Runs?

I’m working on a JMP JSL script where I filter tables based on a user-provided list of values. I create filtered tables using Subset.

The issue I’m running into is:

  1. On the first run, the filtered table shows the correct rows.

  2. On the second run, if I input a new list, the filtered table sometimes still shows rows from the previous run, or combines old and new rows.

  3. I’m using Names Default To Here(1) and Clear Symbols() at the end of the script, but that does not fully clear the table from JMP memory, so Subset seems to retain references to old rows.

Is there a recommended way in JMP to completely clear memory references for tables before creating new subsets?

hows to make Subset filtering repeatable across multiple runs without old data showing up?

3 REPLIES 3
jthi
Super User

Re: Subset Table Keeps Showing Old Rows – How to Clear Memory Between Runs?

Can you provide example of your script? If you are using subset correctly, it won't show "old rows".

 

 

-Jarmo
hogi
Level XIII

Re: Subset Table Keeps Showing Old Rows – How to Clear Memory Between Runs?

could you please share a simplified version of your  code - as short as possible.
... starting with loading a data table , e.g.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

Getting fast helpful answers to your questions 
Getting correct answers to correct questions quickly 

hogi
Level XIII

Re: Subset Table Keeps Showing Old Rows – How to Clear Memory Between Runs?

Most of such timing issues can be fixed via wait(0).
Just add it after the subset command - and maybe another one before the subset command.

Recommended Articles