Just noticed that my Analyse Columns doesn't work with JMP17, or even worse it returns incorrect data. Issue is that JMP17 has changed how Move Selected Columns works with a list.
Names Default To Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp");
list = {"sex", "name"};
wait(1);
dt << Move Selected Columns(list, To Last);
show(JMP Version());
With this simple example you can see that JMP17 ignores the order of items in the list (or rather sorts alphabetically?)
JMP16:
![jthi_1-1674837784475.png jthi_1-1674837784475.png](https://community.jmp.com/t5/image/serverpage/image-id/49546iE48D8A1216595063/image-size/medium?v=v2&px=400)
JMP17:
![jthi_0-1674837768976.png jthi_0-1674837768976.png](https://community.jmp.com/t5/image/serverpage/image-id/49545i255387109A1C2D9D/image-size/medium?v=v2&px=400)
I can figure out many ways to handle this, but I'm not really sure if I should have to
Names Default To Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp");
list = {"sex", "name", "age", "weight", "height"};
If(Num(Word(1, JMP Version(), ".")) < 17,
dt << Move Selected Columns(list, To Last);
, // else
first_col = Remove From(list, 1);
dt << Move Selected Columns(first_col, To First);
For Each({col}, list,
Eval(EvalExpr(
dt << Move Selected Columns({Expr(col)}, To Last);
));
);
);
-Jarmo