The SCL Debugger |
Abbreviation: | S |
Syntax | |
Details | |
Examples |
Syntax |
SET <entry-name\> variable expression |
is the name of a catalog entry containing an SCL program entry that uses variable. If the entry resides in the current catalog, then entry-name can be a one-level name. If the entry resides in a different catalog, then entry-name must be a four-level name, and the entry must already be loaded into the application's execution stack. A backslash must follow the entry name.
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 |
Set variable A to the value of 3:
DEBUG> s a=3The output to the debugger MESSAGE window is
Stop at line 5 in SASUSER.SCL.TEST2.SCL A = 3
Set X to the value of item 1 in LIST:
DEBUG> s x=getitemc(list,1)
Set variable A in program PROG1 to the value of the result of the expression a+c*3:
DEBUG> s prog1\a=a+c*3
Assign to variable B the value 12345 concatenated with the value of B:
DEBUG> s b= 12345 || b
Set array element ARR[1] to the value of the result of the expression a+3:
DEBUG> s arr[1]=a+3
Set array element CRR[1,2,3] to the value of the result of the expression crr[1,1,2]+crr[1,1,3]:
DEBUG> s crr[1,2,3]=crr[1,1,2]+crr[1,1,3]
Set the values of a whole array:
DEBUG> s crr=['a', 'b', 'c', 'd']
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.