SAS how to open most recent file when using Remote connection

妖精的绣舞 提交于 2019-12-25 08:33:45

问题


This is an extension from this question In Base SAS, how can I auto refresh the explorer?

RawFocus gives me a way of opening a file but it doesn't work for me as I'm using rsubmit. The updated code initially didn't work, but now it opens the wrong file. v3 rather v7. As per this pic.

The code I've used for the hotkey is as follows;

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

Any questions, please let me know,
J


回答1:


Had to split across two keys, but the following may suit your needs:

dm 'keydef F3 "submit ''%nrstr(rsubmit; %sysrput lastds=&syslast; endrsubmit;)''; "';
dm 'keydef F4 "vt r%nrstr(&lastds); "';

Hit F3 to refresh, then F4 to open the table. This will only work though if the latest table is in RWORK! Am sure this could be improved with the use of macro..



来源:https://stackoverflow.com/questions/40153344/sas-how-to-open-most-recent-file-when-using-remote-connection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!