全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1983 6
2013-09-03
悬赏 100 个论坛币 已解决
想问各位老师一个事:

SAS运行某程序后,会在一个路径生成一个txt的文件,我现在就想把这个文件展示出来:Output窗口,Html窗口,或者SAS内部的查看器,但是,不能是log窗口。

例如生成的文件在:C:\Users\guoti\Desktop\Mycro,文件叫做abc.txt

另外还有一个小问题,最好能设置5秒后打开,万一文件比较大,需要写入完全。。

注意:因为是在Unix环境中运行,必须需要在SAS中打开,否则会涉及权限问题。

求助,谢谢。
Capture.JPG

原图尺寸 48.71 KB

Capture.JPG

最佳答案

yongyitian 查看完整内容

try to submit the following code from program editor (not enhanced editor) It works on my site. data _null_; dm 'wedit "F:\MySas\class.txt" '; run;
二维码

扫码加我 拉你入群

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

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

全部回复
2013-9-3 11:09:38
try to submit the following code from program editor (not enhanced editor)
It works on my site.

data _null_;                                                                                                         
  dm 'wedit "F:\MySas\class.txt" ';                                                                                 
run;
二维码

扫码加我 拉你入群

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

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

2013-9-3 14:17:48
哪位老师能给点线索也行,貌似那个DLGSAVE和他的用法差不多,但是出不来文件,只能手动选择。。

这个print file到底从何查起,我都在搜索“option print”了,大海捞针。。
二维码

扫码加我 拉你入群

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

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

2013-9-3 21:10:45
DATA _NULL_ ; X = SLEEP(5) ; RUN ;  
dm "fileopen 'C:\Users\guoti\Desktop\Mycro\abc.txt'" ;
二维码

扫码加我 拉你入群

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

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

2013-9-4 09:36:25
yuerqieqie 发表于 2013-9-3 21:10
DATA _NULL_ ; X = SLEEP(5) ; RUN ;  
dm "fileopen 'C:\Users\guoti\Desktop\Mycro\abc.txt'" ;
这个还是不能用,我也没搞明白为什么,谢谢先
二维码

扫码加我 拉你入群

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

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

2013-9-4 12:04:41
yongyitian 发表于 2013-9-4 10:55
try to submit the following code from program editor (not enhanced editor)
It works on my site.
Thanks you.

I have try this way yesterday. It works in Windows SAS but not in Unix.

I think I had to try another way that depend on Unix directly.

Thank you again. And by the way, I remember the rm command is open code, do not need set in data step.
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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