To set the value of an accumulator, use the SET command. The format for a SET statement is as follows:
SET variable,value
where variable is the name of the accumulator or other variable and value is the value that you want to assign to the variable. For example, the following statement assigns a value of 5 to the accumulator A1:
SET A1,5
You can also set an accumulator equal to another accumulator. For example, if you have already set A1 to 5, you can set A2 to 5 using the following statement:
SET A2,A1
In the SET statement, the first operand (which must be a variable) is assigned the value specified in the second operand, whether the value is numeric or another variable.
|
Copyright © 2013 CA.
All rights reserved.
|
|