Currently, to increment a data variable in a hash object, one must:
- copy the whole hash object record into data step variables using find()
- update the data step variable
- update the hash table record using replace()
The keywords sum, add and suminc are already used so this is getting a little crowded, maybe inc would be suitable?
RC=hash.inc(key:KEYVAR, data:DATAVAR, value:VAL/2);
Maybe if this was an hiter object.
Where the function ignore string variables, working only on numeric data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.