You can also do this interactively.
Select all your columns, right click, standardize attributes
jthi_0-1718860168534.png
From Attributes select lock
jthi_1-1718860187913.png
jthi_2-1718860201952.png
Enable Lock, press Apply, verify from column list columns are locked and press OK
jthi_3-1718860227869.png
JMP will also create a script to do this but it isn't as robust as the script provided by Jim (JMP created one has pre-determined columns in a list)
Local({old dt = Current Data Table()},
Current Data Table(Data Table("Big Class"));
For Each({col, index}, {:name, :age, :sex, :height, :weight}, col << Lock(1));
Current Data Table(old dt);
);
-Jarmo