BookmarkSubscribeRSS Feed
abcd123
Fluorite | Level 6

Hello,

Each time before I run SAS codes I would like to clear the work library using following codes:

proc datasets lib=work kill nolist memtype=data;

quit;


I don't want to type these codes each time, so I try to assign these codes to a keystroke or a toolbar shortcut. I googled and followed instructions (such as this one: VCU TS - Creating Keyboard and Toolbar Shortcuts in SAS) ;however it does not seem to work.


Did anyone know how to assign these codes to  a keystroke or a toolbar shortcut? Thanks.

2 REPLIES 2
AhmedAl_Attar
Rhodochrosite | Level 12

Check out the following SAS Global Forum papers, they will illustrate how to do that

- http://support.sas.com/resources/papers/proceedings11/099-2011.pdf

- http://support.sas.com/resources/papers/proceedings12/151-2012.pdf

Hope it helps,

Ahmed

abcd123
Fluorite | Level 6

Thank you very  much. It works now.

For those who are interested, the trick is to use gsubmit. In my case, I entered following to the keystroke.

gsubmit proc datasets lib=work kill nolist memtype=data;quit; "

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 677 views
  • 0 likes
  • 2 in conversation