问题
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