黃河泉 发表于 2018-1-9 07:31 
将 input str8 改为 input str14,然后用 destring 即可。
老师好,我将stkcd变量的type从str8改成str14了,结果还是不行,执行结果是这样的:
recast str14 stkcd
destring stkcd, replace ignore(" ")
stkcd contains characters not specified in ignore(); no replace
还有就是,数据是已经生成在dta文件里了,就是在数据文件里,用destring命令,总也没法将stkcd这个变量数值化。谢谢老师