You can also do this interactively.
Select all your columns, right click, standardize attributes

From Attributes select lock


Enable Lock, press Apply, verify from column list columns are locked and press OK

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