. input num
num
1. 1000000000
2. 0900000000
3. 0100000000
4. 1000000001
5. end
**因为输入为数值型,所以在数据里会把最开始的0自动忽略。
. tostring num,gen(newnum)
newnum generated as str10
. replace newnum=substr("0000000000"+newnum,-10,.) if newnum!=""
(2 real changes made)
ps:或者直接在excel设置好,然后直接导入。