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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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