Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted
UberBock
Level III

Closing created tables?

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...

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Closing created tables?

Add this at the beginning of the code you listed

try( close( data table("sel"), nosave));
Jim

View solution in original post

1 REPLY 1
Highlighted
txnelson
Super User

Re: Closing created tables?

Add this at the beginning of the code you listed

try( close( data table("sel"), nosave));
Jim

View solution in original post

Article Labels