🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How do I create code abbreviations in the workbench?

User: "Nico Chart_21517"
Altair Employee
Updated by Nico Chart_21517

Code abbreviations and expansions are handled in Workbench using code templates.
If you wish to include more extensive code for a procedure or a data step you can set this up in Window->Preferences->Altair->Code Templates where you can create named templates.
Select the New button and enter the name of your template, such as set.
In the Pattern: section enter the code that you wish to associate with the template named set. For example,
data yyy;
set xxx;
run;
Ok the forms and return to your source script.
If you enter the name set and then hit Ctrl+space the set should be expanded to the contents of your template.

Find more posts tagged with