BookmarkSubscribeRSS Feed
Sam_Hill_AMEX
Calcite | Level 5
Hello All,
With all of the commenting I try to do, I would like to have the ability to assign what I would call "auto text" to a couple of my keys.

I want to be able to press F11 when in my Program Editor and get the result of:

/**************************************


then press F12 and get:

**************************************/


We're a bit stumped here @ amex on this one, and hoping someone out there may have some ideas.

Thanks,

Sam
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi, Sam:
You might want to double check this with Tech Support, as I am dredging up some faint memories here. Try popping up the KEYS window (enter KEYS in the Command line). Then when the KEYS window is active, type a tilde (~) as the first character of the string:
[pre]
~/**********
in the area next to the F11 key and
~***********/
in the area next to the F12 key
[/pre]
The key settings are saved when you close the window, but I can't remember whether they're saved for the session or for good. You may have to issue a WSAVE or something like that before you close the window. Tech Support would know for sure.
cynthia
Olivier
Pyrite | Level 9
If you are using SAS on Windows, you should be able to use the Enhanced Editor, and therefore to record a keybord macro : action = type /********************** and associated key = F11.
If on a different OS, the ~ trick Cynthia just explained should work alright ; the keys are save on a profile basis, so you should have the F11 and F12 re-definitions saved when you close your SAS session.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 808 views
  • 0 likes
  • 3 in conversation