My earlier post had snippet from JMP 17.2 Scripting Index. This is from my JMP (Pro) 16.2
![jthi_0-1694767116279.png jthi_0-1694767116279.png](https://community.jmp.com/t5/image/serverpage/image-id/56661i0D0639BBDFC4A419/image-size/medium?v=v2&px=400)
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