Automation – How to automatically refresh the resource manager in Base SAS?

I’m pretty sure this must be some problem, so there must be a solution. I write code and want to quickly check the data set, but it does not exist. I need to select the window and click ” View” and click “Refresh”. Is there a keyboard shortcut I can use or a macro I can write to do this for me?

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

You can use the following methods to execute programmatically

dm "next explorer; refresh";< /pre> 

Or assign it to a shortcut key (such as F2), as shown below:

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

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

dm "keydef F3'vt &syslast'";

pre>

If the data set is located at a remote location, you can adjust the following content as needed (please pay attention to the embedded sas code submitted):

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

More shortcuts here!

I am pretty sure this must be some problem, so there must be a solution. I write code and want to quickly check the data set, but it does not exist. 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 to do this for me?

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

You can use the following methods to execute programmatically

dm "next explorer; refresh";

Or assign it to a shortcut Key (for example, F2), as shown below:

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

If you only want to open the last one Data set, you can also assign it to a shortcut key:

dm "keydef F3'vt &syslast'";

If the data set is located in a remote location, You can adjust the following content as needed (please pay attention to the embedded sas code submitted):

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

More shortcuts here!

Leave a Comment

Your email address will not be published.