Many ways to handle this. Here is one idea using Data table subscripting
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Add Rows(5, at end);
dt << Select columns({"name", "age", "sex"});
Main Menu("Copy", dt << Get Window Title);
clipb = Get Clipboard();
txt = Trim Whitespace(clipb);
// Substitute Into(txt, " ", "\!t"); // could replace spaces with tabs
l_all = Words(txt, "\!N");
// Using \!t for demo purposes
list_of_lists = Transform Each({line}, l_all, Words(line, "\!t"));
dt_new = New Table("table",
Add Rows(N Items(l_all))
);
dt_new << Delete Column(1);
For(i = 1, i <= N Items(list_of_lists[1]), i++,
dt_new << New Column("col" || char(i), Character, Nominal);
);
dt_new[0,0] = list_of_lists;
-Jarmo