楼主: lavender96566
2200 0

[其他] 用宏合并dataset的问题 [推广有奖]

  • 0关注
  • 0粉丝

学前班

30%

还不是VIP/贵宾

-

威望
0
论坛币
10 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
33 点
帖子
3
精华
0
在线时间
3 小时
注册时间
2009-9-10
最后登录
2010-5-4

楼主
lavender96566 发表于 2009-11-8 16:59:43 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
为了把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
二维码

扫码加我 拉你入群

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

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

关键词:dataset DataS Data Set TAS command invalid create error 我不知道

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 08:17