Dear Colleagues,

I have been trying to extract the first three characters of an ICD variable. I tried using the following command:

substr(icd_code,1,3)

I get an error saying that "unrecognized command: substr". This is despite of the fact that substr turns into blue in the do file confirming that software has recognized it as a command.

I would highly appreciate your helps and answers.

Best,

Mehdi

More Mehdi Osooli's questions See All
Similar questions and discussions