全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2171 0
2009-11-08
为了把4个dataset 合并我用了宏来append这4个dataset, 之前用了几次都行,今天头几次也行,但是后来就老出错
(同样的data,同样的syntax,什么都没变过)我不知道是哪里错了,难道是run了太多次?谁清楚原因,谢了~

错误显示为:
while r(eof)==0 { /* while you're not at the end of the file*/
program error:  code follows on the same line as open brace
......
}
unrecognized command:  } invalid command name



我的syntax:
cd G:\create
! dir *.dta /a-d /b >G:\SDSU\Semester3\Econ740\Paper\Data\create\filelist.txt
file open myfile using "G:\SDSU\Semester3\Econ740\Paper\Data\create\filelist.txt", read
file read myfile line
use `line'
save master_data, replace
file read myfile line
while r(eof)==0 { /* while you're not at the end of the file*/
append using `line'
save master_data, replace
file read myfile line
}
file close myfile
save G:\create1.dta
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群