Hi all,

I have a column variable containing only 3- or 4-digit string observations. I just converted from numerical-type as I thought this would allow the abbrev command to work.

abbrev("siccd",3) : gen siccd3

Already, the problem is that command abbrev is unrecognized r(199) - is this because I need to install a package?

Essentially, what I want to do is create a new column having deleted the last number/string from all of the 4-digit variables such that they are all 3-digit variables. Is this possible and do I even need to convert from numeric-type to string-type in the first place?

Thank you all in advance!