Previous Page | Next Page

DATA Step Debugger

SET



Assigns a new value to a specified variable.
Category: Manipulating DATA Step Variables
Alias: None

Syntax
Arguments
Details
Examples

Syntax

SET variable=expression

Arguments

variable

specifies the name of a DATA step variable or an array reference.

expression

is any debugger expression.

Tip: Expression can contain the variable name that is used on the left side of the equal sign. When a variable appears on both sides of the equal sign, the debugger uses the original value on the right side to evaluate the expression and stores the result in the variable on the left.

Details

The SET command assigns a value to a specified variable. When you detect an error during program execution, you can use this command to assign new values to variables. This enables you to continue the debugging session.


Examples

Previous Page | Next Page | Top of Page