Here is a simple example to do the selections you want
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Create the config table
dtCon = New Table( "Config", New Column( "Col", values( {13, 15} ) ) );
// Select the data based upon the values in the Config table
dt << clear select;
For( i = 1, i <= N Rows( dtCon ), i++,
dt << select where( :age == dtCon:Col[i], current selection( "extend" ) )
);
Jim