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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 638 views
  • 1 like
  • 3 in conversation