Put Down that Mouse - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Put Down that Mouse

Description:

CTRL SHIFT U = Upcases Highlighted section. CTRL SHIFT ... MEND mkdata; %mkdata(name=dataset); 7. 1. Kill Datasets! PROC DATASETS MT=data LIB=work KILL; ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 22
Provided by: bas64
Category:
Tags: down | mend | mouse | put

less

Transcript and Presenter's Notes

Title: Put Down that Mouse


1
Put Down that Mouse!
  • A quick tip by Dan Boisvert

2
SAS Specific
  • F1 Show Help
  • F3 Run program or highlighted section
  • F5 Show Enhanced Editor
  • F6 Show Log
  • F7 Show Output
  • F9 Show DMKEYS
  • CTRL SHIFT U Upcases Highlighted section
  • CTRL SHIFT L Lowcases Highlighted section

3
Default DMKEYS
4
Personalize your shortcut keys
Open the last created dataset.
Shortcut to clear LOG and Output.
5
Putting these to Use!
  • Goal Delete all the datasets created in the
    program.
  • Reason Extraneous WORK datasets slow SAS down.
  • Avoid using incorrect temporary
    datasets in other
  • programs.

6
An Example Program
  • MACRO mkdata(name)
  • DO ds1 TO 50
  • DATA name.ds.
  • XRANUNI(9)a
  • RUN
  • END
  • MEND mkdata
  • mkdata(namedataset)

7
1. Kill Datasets!
  • PROC DATASETS MTdata LIBwork KILL
  • QUIT
  • Clear the LOG (F11)

8
2. Rerun Program No KILL OPTION
  • MACRO mkdata(name)
  • DO ds1 TO 50
  • DATA name.ds.
  • XRANUNI(9)
  • RUN
  • END
  • MEND mkdata
  • mkdata(namedataset)
  • PROC DATASETS MTdata LIBWORK
  • QUIT

KILL
9
3. Go to the LOG F6
10
4. ALT Highlight
11
5. Paste into PROC DATASETS
  • PROC DATASETS MTdata LIBwork
  • DELETE DATASET1
  • DATASET10
  • DATASET11
  • DATASET12
  • DATASET13
  • DATASET14
  • DATASET15
  • DATASET16
  • DATASET17
  • DATASET18
  • DATASET19
  • DATASET2
  • DATASET20
  • DATASET21
  • DATASET22
  • DATASET23
  • DATASET24
  • DATASET25

12
6. Keyboard Macro
13
SHIFTEND - Highlight the entire word
14
CTRLSHIFTL - Lowercases the word
15
? SPACE DELETE - Go to the end of the word, add a
space, bring up the next word from the list.
16
Stop Recording
17
Save Keyboard Macro
18
Assign Keys
19
Run Keyboard Macro - CTRL W
  • PROC DATASETS MTdata LIBwork
  • DELETE dataset1 dataset10 dataset11 dataset12
    dataset13 dataset14 dataset15
  • dataset16 dataset17 dataset18 dataset19 dataset2
    dataset20 dataset21 dataset22
  • dataset23 dataset24 dataset25 dataset26 dataset27
    dataset28 dataset29 dataset3
  • dataset30 dataset4 dataset5 dataset6 dataset7
    dataset8 dataset9
  • QUIT

20
Line up!
Press TAB
21
Questions??
Write a Comment
User Comments (0)
About PowerShow.com