两个命令:
一:
foreach num of numlist 0/1 {
foreach i of numlist 1/2{
*
dis _n in g "monthly200`num'0`i'" in y "的初始缺失值数量是:" in y `xx'
*
}
}
*
二:
foreach num of numlist 0/0 {
foreach i of numlist 1/12 {
if `i'<=2 {
local x=
do "C:\Users\miao\Desktop\others\1234.do"
}
}
}
1234.do 内容是dis _n in g "monthly200`num'0`i'" in y "的初始缺失值数量是:" in y `xx'
两段命令差别在于 一个有子do文件,一个不包含子do文件。
问题是:为什么子do文件不能显示`num'和`i'暂元,是否子do文件不能使用上一级do文件的local暂元,如果是,怎么解决在子do中显示上一级的暂元?


雷达卡




京公网安备 11010802022788号







