My earlier post had snippet from JMP 17.2 Scripting Index. This is from my JMP (Pro) 16.2
But the command doesn't seem to work, so I would suggest using the Main Menu option. One thing to be careful with is that Move Up will affect current data table and the main menu() doesn't seem to obey optional <window name> argument properly. So it might be a good idea to force Current Data Table() before running the command
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt1 = Open("$SAMPLE_DATA/Iris.jmp");
Current Data Table(dt1);
Eval(EvalExpr(
Main Menu("Cols:Move Up", Expr((dt << get name)));
));
wait(1);
Current Data Table(dt);
Main Menu("Cols:Move Up", "Big Class");
Big Class should have its column titles changed twice, but for some reason both tables get them changed once.
-Jarmo