As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Difference between revisions of "Creating Display Manager Abbreviations and Keyboard Macros for the Enhanced Editor"

From sasCommunity
Jump to: navigation, search
m (wikilink comments)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
== Abstract ==
 
== Abstract ==
The boss wants all of your SAS® programs to have a header section of comments.  She wants this section to be uniform across all of your programs, she wants it to have lots of stuff in it, and you don't like to type.  How can you automatically insert uniform blocks of text into your program with a minimum of typing and without using the paste buffer?  The answer lies in the use of Abbreviations and Keyboard Macros.  Abbreviations allow you to associate any amount of text with a designated word or set of keystrokes.  Type in the designated word, press the tab key and the desired text is substituted into your program.  In the example shown below, you will see how typing the word 'HEADER' inserts a series of comment statements that become the standard header block for a program.  
+
The boss wants all of your [[SAS]]® programs to have a header section of [[comments]].  She wants this section to be uniform across all of your programs, she wants it to have lots of stuff in it, and you don't like to type.  How can you automatically insert uniform blocks of text into your program with a minimum of typing and without using the paste buffer?  The answer lies in the use of Abbreviations and Keyboard Macros.  Abbreviations allow you to associate any amount of text with a designated word or set of keystrokes.  Type in the designated word, press the tab key and the desired text is substituted into your program.  In the example shown below, you will see how typing the word 'HEADER' inserts a series of comment statements that become the standard header block for a program.  
 
+
<!--
+
Make sure to edit the below text. You can either remove the links to your paper or supplemental materials, '''''OR''''' fill in the details for your presentation. You should also
+
- change YYYY on the last line to the four digit year of the conference you presented at.
+
- replace all the references to YOUR-USERNAME-HERE with the userid you use to login to sasCommunity.org.
+
-->
+
  
 
== Online Materials ==
 
== Online Materials ==
Line 15: Line 9:
 
Please check out my [[User:ArtCarpenter|user page]]. You can also [[Special:EmailUser/ArtCarpenter|email me]].
 
Please check out my [[User:ArtCarpenter|user page]]. You can also [[Special:EmailUser/ArtCarpenter|email me]].
  
<!-- Add/edit whatever categories are appropriate -->
 
 
[[Category:ArtCarpenter Papers and Presentations]]
 
[[Category:ArtCarpenter Papers and Presentations]]
 
[[Category:Display Manager]]
 
[[Category:Display Manager]]

Latest revision as of 12:34, 19 September 2017

Abstract

The boss wants all of your SAS® programs to have a header section of comments. She wants this section to be uniform across all of your programs, she wants it to have lots of stuff in it, and you don't like to type. How can you automatically insert uniform blocks of text into your program with a minimum of typing and without using the paste buffer? The answer lies in the use of Abbreviations and Keyboard Macros. Abbreviations allow you to associate any amount of text with a designated word or set of keystrokes. Type in the designated word, press the tab key and the desired text is substituted into your program. In the example shown below, you will see how typing the word 'HEADER' inserts a series of comment statements that become the standard header block for a program.

Online Materials

View the pdf for this paper.
Learn more about keyboard macros and Abbreviations in this article which also contains links to a number of uploaded KMF files.

Contact Info

Please check out my user page. You can also email me.