Chapter Contents |
Previous |
Next |
SET |
Abbreviation: | S |
Syntax | |
Details | |
Examples |
Syntax |
SET <entry-name\> variable expression |
Details |
The SET command assigns either a value or the result of a debugger expression to the 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 instead of having to stop, modify a variable value, and recompile the program. You can also assign new values to variables in other active entries.
Examples |
DEBUG> s a=3The output to the debugger MESSAGE window is
Stop at line 5 in SASUSER.SCL.TEST2.SCL A = 3
DEBUG> s x=getitemc(list,1)
DEBUG> s prog1\a=a+c*3
12345
concatenated with the value of B:
DEBUG> s b= 12345 || b
DEBUG> s arr[1]=a+3
DEBUG> s crr[1,2,3]=crr[1,1,2]+crr[1,1,3]
DEBUG> s crr=['a', 'b', 'c', 'd']
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.