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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 5 replies
  • 622 views
  • 0 likes
  • 4 in conversation