I'm working with large files and am trying to be more thrifty when it comes to memory. I want to change the data type for some columns to "1-byte integer" using JSL but can't figure it out.
I have set my Table preferences to "Allow short numeric data format," and I can change a column's data type by hand, but I need to do it with JSL. If I change the data type by hand and then copy and paste the column into a script I see the data type for a 1-byte integer appears to be "Numeric(1)" . Maybe that is a clue.
Here are some things I've tried:
dt = open("$sample_data/big class.jmp");
dt:age << Data Type(1-byte integer); //error "Agument to Type..."
dt:age << Data Type("1-byte integer"); //error "Agument to Type..."
dt:age << Data Type(Character); //this works, changes to Character
dt:age << Data Type(Numeric); //this works, changes to Numeric
dt:age << Data Type(Numeric(1)); //no error, but data type stays NumericIt's probably something simple, but I've found no solution in the JMP Help or Community so far. Any help would be appreciated. (I'm on JMP 16.1.)