BookmarkSubscribeRSS Feed
blueskyxyz
Lapis Lazuli | Level 10

It is awesome with code prompts when programming.

Thanks Chris sharing a useful method to create one abbrevation for one snippet.

https://blogs.sas.com/content/sasdummy/2017/07/03/sas-program-editor-tricks/

 

It takes time to copy code and add abbrevation for each snippet. If I want to create the abbrevations or prompts for all sas code snippets in batches,  how to do? 

6 REPLIES 6
ChrisNZ
Tourmaline | Level 20

That's an odd demand. How many abbreviation do you have in mind?

I don't think your idea is possible btw.

blueskyxyz
Lapis Lazuli | Level 10

sorry for my odd demand, could you offer some suggestions or exmples which can save time to re-use your code quickly rather than opening your code in an editor, copying and pasting them in a tradtional way.

blueskyxyz
Lapis Lazuli | Level 10

Yes, does it work to copy user's shortcut settings? copy sth from which folder? copy my shortcut setting from my pc and paste in company pc.

 

There is another method, a teacher shown it in a training class serveral years ago(sorry, I can't remember now), who imports his sample code into sas, when type a word( which is also in the sample code), then code snippet is displayed, you can pick them in your editor.

blueskyxyz
Lapis Lazuli | Level 10
Sorry, I can't remember what kind of file which is imported in pc sas.
Thanks for your message.

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
  • 6 replies
  • 639 views
  • 0 likes
  • 3 in conversation