Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2006, SAS Institute Inc. All rights reserved. Shortcuts- what you may not know that can save you time! Elizabeth Ceranowski SAS Student Programs.

Similar presentations


Presentation on theme: "Copyright © 2006, SAS Institute Inc. All rights reserved. Shortcuts- what you may not know that can save you time! Elizabeth Ceranowski SAS Student Programs."— Presentation transcript:

1 Copyright © 2006, SAS Institute Inc. All rights reserved. Shortcuts- what you may not know that can save you time! Elizabeth Ceranowski SAS Student Programs Manager

2 Copyright © 2006, SAS Institute Inc. All rights reserved. What?  Keys Command  Other Keystroke Shortcuts  Keyword Coloring  SAS Abbreviations  Keyboard Macros

3 Copyright © 2006, SAS Institute Inc. All rights reserved. Setting “Keys”  Execute SAS Command(s) quickly  Can be customized  Are saved in your user profile so you don’t have to keep setting them. Bar size 2048

4 Copyright © 2006, SAS Institute Inc. All rights reserved. Setting “Keys” Example: Prior to submitting code, I like a clean log and output window. I want to set one “hot” key so that “Clear log” is executed “Clear output” is executed. Bar size 2048

5 Copyright © 2006, SAS Institute Inc. All rights reserved. Setting “Keys”

6 Copyright © 2006, SAS Institute Inc. All rights reserved. Setting “Keys” Bar size 2048 I set F12 so that “Clear log” is executed “Clear output” is executed Notice, commands are separated by a semi-colon.

7 Copyright © 2006, SAS Institute Inc. All rights reserved. Other Shortcuts  Quickly comment code Ctrl /  Quickly uncomment code Ctrl Shift / Bar size 2048

8 Copyright © 2006, SAS Institute Inc. All rights reserved. Other Shortcuts  Got DO/END problems? Bar size 2048

9 Copyright © 2006, SAS Institute Inc. All rights reserved. Other Shortcuts Where is it?

10 Copyright © 2006, SAS Institute Inc. All rights reserved. Other Shortcuts To locate matching pairs of DO/END statements: ALT [ ALT ]

11 Copyright © 2006, SAS Institute Inc. All rights reserved. Other Shortcuts  Need to change the case your code? Don’t retype it! Bar size 2048 Change to Lowercase: Ctrl Shift L Change to Uppercase: Ctrl Shift U

12 Copyright © 2006, SAS Institute Inc. All rights reserved. SAS abbreviations are your friends, use the template method to code! Elizabeth Ceranowski SAS Student Programs Manager

13 Copyright © 2006, SAS Institute Inc. All rights reserved. What is an abbreviation?  Text that will be injected into your Enhanced Editor Window when established key strokes are issued. Bar size 2048

14 Copyright © 2006, SAS Institute Inc. All rights reserved. When is this useful?  Adding comment blocks  Getting code hints − Great for functions and procedures!  Performing repetitive coding… Reduce Typing! Bar size 2048

15 Copyright © 2006, SAS Institute Inc. All rights reserved. Bar size 2048 PROC FREQ… What statement selects Columns? VAR? COLUMN? TABLES? What are the arguments to that “function”? I have to COMMENT my program EVERY time! I use PROC PRINT all the time! I am TIRED of typing!

16 Copyright © 2006, SAS Institute Inc. All rights reserved. Need to use TRANWRD function. Misspelled the word “received”! Bar size 2048 Note: This data is entirely fictitious. All names and complaints are made up!

17 Copyright © 2006, SAS Institute Inc. All rights reserved. The Steps… 1.Write the code or text that SAS should inject. 2.Choose a name for the abbreviation. 3.Highlight and copy the text. 4.Create the abbreviation. Bar size 2048

18 Copyright © 2006, SAS Institute Inc. All rights reserved. I need help! SYNTAX: tranwrd(,, ) Bar size 2048

19 Copyright © 2006, SAS Institute Inc. All rights reserved. Can you set a Shortcut Key? Absolutely! Just modify the abbreviation, and “assign keys”. Bar size 2048

20 Copyright © 2006, SAS Institute Inc. All rights reserved. Keyboard Macros SAS has many assigned Keyboard Macros already included. That Lowcase and Upcase short cut is actually a Keyboard Macro. Bar size 2048

21 Copyright © 2006, SAS Institute Inc. All rights reserved. Thank You!


Download ppt "Copyright © 2006, SAS Institute Inc. All rights reserved. Shortcuts- what you may not know that can save you time! Elizabeth Ceranowski SAS Student Programs."

Similar presentations


Ads by Google