About the DATA Step Code Editor
On the DATA Step Code tab, you use the code editor to define your SAS DATA step code.
Here are some of the features of the code editor:
- syntax highlighting that uses different colors to differentiate between types of keywords.
- autocomplete functionality that prompts you to view and select keywords based on the text that you enter. A description for each keyword is also provided.
- a code-folding toggle icon that enables you to collapse and expand each DATA step in the code editor.
- a toolbar option that enables you to go to a specific line in the DATA step code.
- a pop-up menu that provides
cut, copy, paste, undo, and redo operations. To access this menu,
right-click in the code editor.
Note: Only text that is copied within SAS Visual Investigator is available to paste using the paste options on the DATA Step Code tab. To paste data that is copied outside of SAS Visual Investigator, use Ctrl+V.
- undo and redo toolbar
buttons and support for corresponding keyboard shortcuts. Here are
the Windows and Mac keyboard shortcuts:
- Windows:
- Undo: Ctrl+Z
- Redo: Ctrl+Y
- Mac:
- Undo: Command+Z
- Redo: Command+Y
- a code validation button. For more information, see Understanding DATA Step Code Validation.
You can undo and redo multiple typing actions (according to the order of entry).
- Windows:
The following figure shows a sample DATA Step Code tab.
Sample DATA Step Code Tab

Last updated: June 16, 2026