Assignment statements let you set a new value for a nominated variable. Assignment statements have the following format:
&variable = expression
where &variable is the name of the target variable, whose value is to be changed to the result of the execution of expression. The target variable is always on the left of the equals sign (=) and the value to be assigned to the target is always on the right of the = sign.
Assignment statements are used to manipulate the values of the variables that your procedure uses.
Assignment also occurs as the result of executing built-in functions and some verbs.
Example: Assignment Statements
&A = 10 -* &A is assigned the value 10
&XYZ = ABCDEF -* &XYZ receives the value ABCDEF
&A = (&C + 1) - (&B * 5) -* Add 1 to &C then subtract
-* five times the value of
-* &B and put the result in &A.
| Copyright © 2010 CA. All rights reserved. |
|