dt1 = Open( "$SAMPLE_DATA/Cities.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
openDTs = List();
For( i = 1, i <= N Table(), i++,
	Insert Into( openDTs, Data Table( i ) );
);
openDTs now is a list of references to all open data tables. You can send messages to any one by using openDTs(n). You can use a for loop to send messages to all of the open data tables. This loop adds a new column named My Column to each open data table.
For( i = 1, i <= N Items( openDTs ), i++,
	openDTs[i] << New Column( "My Column" );
);
For( i = 1, i <= N Table(), i++,
	Insert Into( openDTs, Data Table( i ) << Get Name());
	);

Help created on 7/12/2018