For example, the statement
SET F1 TO 4
Will set the value of the index f1 to 4.
To set one particular value to one or more index names we can use the following form.
For example, SET F1, Y1 to 3.
Only positive integral values can be set to an index.
When it becomes necessary to increment or decrement one or more indexes by a positive integer value, the following form may be applied.
The phrase UP BY is used to increment the values of the indexes and the phrase DOWN BY is used to decrement their values.
Thus, to increment the current value of F1 and Y1 by 2, the following statement may be used.
SET F1,Y1 UP BY 2.
On the other hand, the statement.
SET D1 DOWN BY A.
Indicates that the current value of the index D1 will be decremented by the current value of the data name A.
No comments:
Post a Comment