Debugger Commands Syntax Listed by Category

Controlling Program Execution

G J S

Name
Syntax and Description
GO < line-number | label >
Starts or resumes execution of the DATA step.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
JUMP line-number | label
Restarts execution of a suspended program.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
STEP < n >
Executes statements one at a time in the active program.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference

Controlling the Windows

H S

Name
Syntax and Description
HELP
Displays information about debugger commands.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
SWAP
Switches control between the SOURCE window and the LOG window.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference

Manipulating DATA Step Variables

C D E S

Name
Syntax and Description
CALC expression
Evaluates a debugger expression and displays the result.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
DESCRIBE variable(s) | _ALL_
Displays the attributes of one or more variables.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
EXAMINE variable-1 < format-1 > <...variable-n < format-n > >
EXAMINE _ALL_ < format >
Displays the value of one or more variables.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
SET variable=expression
Assigns a new value to a specified variable.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference

Manipulating Debugging Requests

B D L T W

Name
Syntax and Description
BREAK location <AFTER count > <WHEN expression > <DO group >
Suspends program execution at an executable statement.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
DELETE BREAK location
DELETE WATCH variable(s) | _ALL_
Deletes breakpoints or the watch status of variables in the DATA step.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
LIST _ALL_ | BREAK | DATASETS | FILES | INFILES | WATCH
Displays all occurrences of the item that is listed in the argument.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
TRACE <ON | OFF>
Controls whether the debugger displays a continuous record of the DATA step execution.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference
WATCH variable(s)
Suspends execution when the value of a specified variable changes.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference

Tailoring the Debugger

Name
Syntax and Description
ENTER command-1 < ... ; command-n >
Assigns one or more debugger commands to the ENTER key.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference

Terminating the Debugger

Name
Syntax and Description
QUIT
Terminates a debugger session.
Product: Base SAS
Document: Base SAS 9.3 Utilities: Reference