Chapter Contents |
Previous |
Next |
SET |
Category: | Manipulating DATA Step Variables |
Alias: | None |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
SET variable=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 |
set a=3
12345
concatenated with the previous
value of B:
set b='12345' || b
set arr{1}=a+3
set crr{1,2,3} = crr{1,1,2} + crr{1,1,3}
set a=a+c*3
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.