You can use Standardize Attributes as your starting point and modify the script it creates as needed.
I have columns like this and I wish to change height and weight to character type columns
Standardize attributes will give me a script like this (from enhanced log)
// Standardize column attributes
Local({old dt = Current Data Table()},
Current Data Table(Data Table("Big Class"));
For Each({col, index}, {:height, :weight},
col << Data Type(Character) << Set Modeling Type("Nominal")
);
Current Data Table(old dt);
);
Next search scripting index for column group (or something similar)
after small modification (I change data type and modeling type back to numeric)
// Standardize column attributes
Local({old dt = Current Data Table()},
Current Data Table(Data Table("Big Class"));
For Each({col, index}, old dt << get column group("height etc."),
col << Data Type(Numeric) << Set Modeling Type("Continuous")
);
Current Data Table(old dt);
);
If you don't know the column group name, the it is back to scripting index
-Jarmo