BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
changxuosu
Quartz | Level 8

Hi Guys,

Is there any shortcut key to create a comment line with all the stars in between, like below?

 

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

 

I feel I need to use add this line of comment very often to separate different portions of sas code,

everytime I have to manually add the stars between /*  */

 

wondering is there anyway to create a shortcut key to do this for quicker coding?

 

 

Thanks a lot!!!!

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Which environment?

 

Editor abbreviations

KEYS entry with the Display Manager System

 

Code snippet (though I'm not sure that accessing those is any quicker than typing)

View solution in original post

5 REPLIES 5
Tom
Super User Tom
Super User

Yes. But the answer totally depends on what you are using as an editor.

novinosrin
Tourmaline | Level 20

Assign that to macro variable and keep calling 🙂 

 

%let comment=%str(/)****************************%str(/);
%put &=comment;
changxuosu
Quartz | Level 8
thanks a lot! Really appreciate it!
ballardw
Super User

Which environment?

 

Editor abbreviations

KEYS entry with the Display Manager System

 

Code snippet (though I'm not sure that accessing those is any quicker than typing)

changxuosu
Quartz | Level 8
haha, thank you for your reply! I created an abbreviation macro and assigned a shortcut key. that's exactly what I wanted! thanks.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 5 replies
  • 1476 views
  • 0 likes
  • 4 in conversation