Put Down that Mouse! A quick tip by Dan Boisvert
SAS® Specific <ul><li>F1 – Show Help </li></ul><ul><li>F3 – Run program or highlighted section </li></ul><ul><li>F5 – Show...
Default DMKEYS
Shortcut to clear LOG and Output. Open the last created dataset. Personalize your shortcut keys
Putting these to Use! <ul><li>Goal :  Delete all the datasets created in the program. </li></ul><ul><li>Reason :  Extraneo...
An Example Program <ul><li>%MACRO  mkdata(name=); </li></ul><ul><li>%DO  ds= 1   %TO   30 ; </li></ul><ul><li>DATA & name....
1. Kill Datasets! <ul><li>PROC   DATASETS   MT =data  LIB =work  KILL ; </li></ul><ul><li>QUIT ; </li></ul><ul><li>Clear t...
2. Rerun Program – No KILL OPTION <ul><li>%MACRO  mkdata(name=); </li></ul><ul><li>%DO  ds= 1   %TO   30 ; </li></ul><ul><...
3. Go to the LOG – F6
4. ALT Highlight
5. Paste into PROC DATASETS <ul><li>PROC   DATASETS   MT =data  LIB =work ; </li></ul><ul><li>DELETE  DATASET1 </li></ul><...
6. Keyboard Macro
SHIFT+END - Highlight the entire word
CTRL+SHIFT+L - Lowercases the word
->  SPACE DELETE - Go to the end of the word, add a space, bring up the next word from the list.
Stop Recording
Save Keyboard Macro
Assign Keys
Run Keyboard Macro - CTRL + W <ul><li>PROC   DATASETS   MT =data  LIB =work; </li></ul><ul><li>DELETE  dataset1  dataset10...
Line up! Press TAB
Et Voila <ul><li>Your keyboard macro is now available every time you open SAS ® . </li></ul>
Questions?? Contact us at: [email_address] [email_address]
Upcoming SlideShare
Loading in...5
×

Put Down That Mouse

461

Published on

A quick tip on how to use keyboard macros in SAS display manager.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
461
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • F1 – Different per window, click on a word of a proc and hit F1 and receive help on the proc!
  • Pressing F9 brings up the DMKEYS menu. Here we can change certain keys to our liking. Delete F4 Change F11 and F12.
  • Also, don’t want to delete temp. datasets used by other programs. Each program should stand on its own.
  • Don’t just take all of the datasets in the work directory.
  • Holding down ALT we can highlight with the mouse down a column. Be careful when pasting, as ALT highlights will write over anything in its path.
  • CTRL + C to copy F5 to move to the editor CTRL + V to paste text
  • Transcript of "Put Down That Mouse"

    1. 1. Put Down that Mouse! A quick tip by Dan Boisvert
    2. 2. SAS® Specific <ul><li>F1 – Show Help </li></ul><ul><li>F3 – Run program or highlighted section </li></ul><ul><li>F5 – Show Enhanced Editor </li></ul><ul><li>F6 – Show Log </li></ul><ul><li>F7 – Show Output </li></ul><ul><li>F9 – Show DMKEYS </li></ul><ul><li>CTRL + SHIFT + U = Upcases Highlighted section </li></ul><ul><li>CTRL + SHIFT + L = Lowcases Highlighted section </li></ul>
    3. 3. Default DMKEYS
    4. 4. Shortcut to clear LOG and Output. Open the last created dataset. Personalize your shortcut keys
    5. 5. Putting these to Use! <ul><li>Goal : Delete all the datasets created in the program. </li></ul><ul><li>Reason : Extraneous WORK datasets slow SAS® down. </li></ul><ul><li>Avoid using incorrect temporary datasets in other </li></ul><ul><li>programs. </li></ul>
    6. 6. An Example Program <ul><li>%MACRO mkdata(name=); </li></ul><ul><li>%DO ds= 1 %TO 30 ; </li></ul><ul><li>DATA & name. & ds. ; </li></ul><ul><li>X=RANUNI( 9 ); </li></ul><ul><li>RUN; </li></ul><ul><li>%END ; </li></ul><ul><li>%MEND mkdata; </li></ul><ul><li>% mkdata (name=dataset); </li></ul>
    7. 7. 1. Kill Datasets! <ul><li>PROC DATASETS MT =data LIB =work KILL ; </li></ul><ul><li>QUIT ; </li></ul><ul><li>Clear the LOG (F11) </li></ul>
    8. 8. 2. Rerun Program – No KILL OPTION <ul><li>%MACRO mkdata(name=); </li></ul><ul><li>%DO ds= 1 %TO 30 ; </li></ul><ul><li>DATA & name. & ds. ; </li></ul><ul><li>X=RANUNI( 9 ); </li></ul><ul><li>RUN; </li></ul><ul><li>%END ; </li></ul><ul><li>%MEND mkdata; </li></ul><ul><li>% mkdata (name=dataset); </li></ul><ul><li>PROC DATASETS MT =data LIB =WORK ; </li></ul><ul><li>QUIT ; </li></ul>KILL
    9. 9. 3. Go to the LOG – F6
    10. 10. 4. ALT Highlight
    11. 11. 5. Paste into PROC DATASETS <ul><li>PROC DATASETS MT =data LIB =work ; </li></ul><ul><li>DELETE DATASET1 </li></ul><ul><li>DATASET10 </li></ul><ul><li>DATASET11 </li></ul><ul><li>DATASET12 </li></ul><ul><li>DATASET13 </li></ul><ul><li>DATASET14 </li></ul><ul><li>DATASET15 </li></ul><ul><li>DATASET16 </li></ul><ul><li>DATASET17 </li></ul><ul><li>DATASET18 </li></ul><ul><li>DATASET19 </li></ul><ul><li>DATASET2 </li></ul><ul><li>DATASET20 </li></ul><ul><li>DATASET21 </li></ul><ul><li>DATASET22 </li></ul><ul><li>DATASET23 </li></ul><ul><li>DATASET24 </li></ul><ul><li>DATASET25 </li></ul><ul><li>DATASET26 </li></ul><ul><li>DATASET27 </li></ul><ul><li>DATASET28 </li></ul><ul><li>DATASET29 </li></ul><ul><li>DATASET3 </li></ul><ul><li>DATASET30 </li></ul><ul><li>DATASET4 </li></ul><ul><li>DATASET5 </li></ul><ul><li>DATASET6 </li></ul><ul><li>DATASET7 </li></ul><ul><li>DATASET8 </li></ul><ul><li>DATASET9 </li></ul><ul><li>; </li></ul><ul><li>QUIT ; </li></ul>
    12. 12. 6. Keyboard Macro
    13. 13. SHIFT+END - Highlight the entire word
    14. 14. CTRL+SHIFT+L - Lowercases the word
    15. 15. -> SPACE DELETE - Go to the end of the word, add a space, bring up the next word from the list.
    16. 16. Stop Recording
    17. 17. Save Keyboard Macro
    18. 18. Assign Keys
    19. 19. Run Keyboard Macro - CTRL + W <ul><li>PROC DATASETS MT =data LIB =work; </li></ul><ul><li>DELETE dataset1 dataset10 dataset11 dataset12 dataset13 dataset14 dataset15 </li></ul><ul><li>dataset16 dataset17 dataset18 dataset19 dataset2 dataset20 dataset21 dataset22 </li></ul><ul><li>dataset23 dataset24 dataset25 dataset26 dataset27 dataset28 dataset29 dataset3 </li></ul><ul><li>dataset30 dataset4 dataset5 dataset6 dataset7 dataset8 dataset9 ; </li></ul><ul><li>QUIT ; </li></ul>
    20. 20. Line up! Press TAB
    21. 21. Et Voila <ul><li>Your keyboard macro is now available every time you open SAS ® . </li></ul>
    22. 22. Questions?? Contact us at: [email_address] [email_address]

    ×