SAS keyboard shortcuts

shreyansh

Member
Staff member
Here are some useful SAS keyboard shortcuts that can help streamline your work:

DescriptionShortcut Key
Run or submit a programF3 or F8
Comment the selected code (/)Ctrl + /
Uncomment the selected code (/)Ctrl + Shift + /
Stop Processing or Cancel Submitted StatementCtrl + Break
Convert selected text to upper caseCtrl + Shift + U
Convert selected text to lower caseCtrl + Shift + L
Find textCtrl + F
Find and replace textCtrl + H
Copy SelectionCtrl + C
PasteCtrl + V
Cut SelectionCtrl + X
Go to a particular lineCtrl + G
To move curser to the matching DO/END statemenAlt + [ or Alt + ]
To move cursor to matching brace/parenthesesCtrl + [ or Ctrl + ]
Move to beginning of lineHome
Move to topCTRL+Home
Move to endCTRL+End
To close the active windowCTRL+F4
To exit the SAS systemALT+F4

Shortcuts for SAS Enterprise Guide​

DescriptionShortcut Key
Ctrl+EndGo to the last record, last column
Ctrl+HomeGo to the first record, first column
Ctrl+GGo to specific row or column
Ctrl + right arrowMove to last column
Ctrl + left arrowMove to first column
F2Rename dataset
Ctrl + IFormat ugly code (Select the code and press Ctrl I)

SAS Keyboard Shortcuts​

DescriptionShortcut Key
Bring up word tipAlt + F1 + No Selection
Hide the current word tipEsc
Collapse all folding blocksAlt + Ctrl + Number pad -
Expand all folding blocksAlt + Ctrl + Number pad +
Execute the last recorded macroCtrl + F1
Undo editCtrl + Z
Redo editCtrl + Y
Clear windowCtrl + E
Paste program belowF4
Get Help for a SAS procedurePlace the cursor within a procedure name and press F1
Context HelpF1
Move cursor to next case changeAlt + Right
Move cursor to previous case changeAlt + Left
File windowCtrl + Q
Explorer windowCtrl + W
Titles windowCtrl + T
System options windowCtrl + I
Open file windowCtrl + O
Save as windowCtrl + S
Active libraries windowCtrl + D
Select allCtrl + A
Clean up white spaceCtrl + Shift + W
Comment the selection with line commentsCtrl + /
Undo the CommentCtrl + Shift + /
Convert the selected text to lowercaseCtrl + Shift + L
Convert the selected text to uppercaseCtrl + Shift + U
Submit selected codeF8
LogF6
OutputF7
EditorF8
KeysF9
Next WindowCtrl + Tab
TileShift + F4
CascadeShift + F5
Next windowCtrl + F6

Using these shortcuts can significantly enhance your efficiency while working in SAS.
 
Back
Top