在Base SAS中,如何自动刷新资源管理器? [英] In Base SAS, how can I auto refresh the explorer?

查看:116
本文介绍了在Base SAS中,如何自动刷新资源管理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相当确定这一定是困扰他人的东西,因此必须有解决方案.我编写了代码,想快速检查数据集,但是它不存在.我需要选择窗口,单击查看,然后单击刷新.是否可以使用键盘快捷键或可以编写的宏来帮我?

I'm fairly sure this must be something that has bugged others and so there must be a solution. I write my code and want to quickly check the dataset, but it isn't there. I need to select the window, click View and click refresh. Is there a keyboard shortcut I can use or a macro I can write that does this for me?

我知道这很懒,但是却使我烦恼.
任何想法都值得赞赏.
J

I know this is lazy but it bugs me.
Any thoughts are appreciated.
J

推荐答案

您可以使用以下方式以编程方式执行此操作:

You could do this programmatically using:

dm "next explorer; refresh";

或将其分配给快捷键(例如F2),如下所示:

Or assign it to a shortcut key (eg F2) as follows:

dm "keydef F2 'next explorer; refresh'";

如果只想打开最后一个数据集,也可以将其分配给快捷键:

If you just want to open the last dataset, you could also assign this to a shortcut key:

dm "keydef F3 'vt &syslast'"; 

如果数据集位于远程位置,则可以根据需要修改以下内容(请注意,已提交的嵌入式sas代码):

If the dataset is in a remote location, the following could be adapted for your needs (note the embedded sas code which gets submitted):

dm 'keydef F4 "submit ''rsubmit; %nrstr(%sysrput lastDS=&syslast;) endrsubmit;''; vt rwork.%scan(&lastDS,2,.)"'; 

此处

这篇关于在Base SAS中,如何自动刷新资源管理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆