在 Base SAS 中,如何自动刷新资源管理器? [英] In Base SAS, how can I auto refresh the explorer?
问题描述
我很确定这一定是其他人的问题,因此必须有解决方案.我编写代码并想快速检查数据集,但它不存在.我需要选择窗口,单击查看并单击刷新.是否有我可以使用的键盘快捷键或我可以编写的宏来为我执行此操作?
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屋!