BookmarkSubscribeRSS Feed
erimagoyal
Calcite | Level 5

Hi,

 

I am trying to create some custom abbreviations. For example I created one for the data step as follows

 

Abbreviation:

Data

Text to insert for abbreviation: 

Data  ;

  Set  ;

Run;

 

Question - When I insert the abbreviation, by default the cursor points at the end of the Run; statement. Is there a way that I can have the cursor point at some other location, may be, at the end of the word data? 

2 REPLIES 2
Kurt_Bremser
Super User

@erimagoyal wrote:

Hi,

 

I am trying to create some custom abbreviations. For example I created one for the data step as follows

 

Abbreviation:

Data

Text to insert for abbreviation: 

Data  ;

  Set  ;

Run;

 

Question - When I insert the abbreviation, by default the cursor points at the end of the Run; statement. Is there a way that I can have the cursor point at some other location, may be, at the end of the word data? 


In EG, you have Cursor Controls available while you define a keyboard macro; you can use a series of those to put the cursor where you want it after insertion of text.

FreelanceReinh
Jade | Level 19

Hi @erimagoyal,

 

Yes, you can add navigation commands to the keyboard macro in order to move the cursor where you want.

 

  1. Menu Tools --> Keyboard Macros --> Macros... 
  2. Select your Abbreviation in the list
  3. Click "Edit..." button
  4. Select "Navigation" from drop-down list "Categories"
  5. Select the desired command for cursor movement (e.g. "Move cursor up") and press the double-arrow button to insert it.
  6. Repeat step 5 with the same or other commands, as needed.


Kbd_macros.png

 

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.

Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1050 views
  • 1 like
  • 3 in conversation