Well, what you didn't do is to look what is really in this string. A say c2x(dt.datatype) revealed that there is a trailing binary zero: 494C424D00
The command dt.datatype = strip(dt.datatype,,'00'x) corrects the error (and it still runs on OS3.9).
Bye,
Thomas