In the JSL below, this allows for the copying of columns between different data tables. However, I actually don't want to change the current main data table with `Current Data Table()`. Is there a way to modify it so that I can copy columns to another specified data table without altering the current main data table?
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << New Formula Column(
Operation( Category( "Combine" ), "Ratio" ),
Columns( :height, :weight )
);
script = Column(dt,"height/weight") << get script;
Current data table(dt2);
script;