I have this bit of JMP script...
dt = Current Data Table();
Names Default To Here( 1 );
dt << clear select;
dt << select where( :SpecimenRange2 >= s );
dt_rgt = dt << Summary(
Group( :reagentkit_id ),
N Catagories( :reagentkit_id ),
Freq( "None" ),
Weight( "None" ),
Link to original data table( 1 )
);
dt << Subset( Output Table( "Sel" ), Selected Rows( 1 ), selected Columns( 0 ) );
ID = :reagentkit_id << GetValues;
dt_rgt << select where( Contains( ID, :reagentkit_id ) );
It is a script in a main table and when run it creates 2 other tables as well as selecting row in the main table. The question is how do I close those 2 additional tables. One is "Sel" or "Sel2" etc... if the user has used the script multiple times and not closed the generated tables...
Add this at the beginning of the code you listed
try( close( data table("sel"), nosave));