In Base SAS, how can I automatically update explorer?

I am sure that this should be something that overheard others, and therefore there must be a solution. I am writing my code and want to quickly check the data set, but it is not. I need to select a window, click "View" and click "Refresh". Is there a keyboard shortcut that I can use, or a macro that I can write that does this for me?

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

+5
source share
1 answer

You can do this programmatically using:

dm "next explorer; refresh"; 

Or assign it to a shortcut key (for example, F2) as follows:

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

If you just want to open the last data set, you can also assign this to a shortcut key:

 dm "keydef F3 'vt &syslast'"; 

If the dataset is located in a remote location, the following can be adapted for your needs (note the embedded sas code that is sent):

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

Other shortcuts are available here !

+5
source

Source: https://habr.com/ru/post/1258452/


All Articles