Set attribute value (SAV)
The command assigns a new value to the attribute of the instance selected in the current or referenced collection.
Parameters:
- attrname - name of the attribute for assignment. In case of complex data types or not unique attribute names in a inheritance hierarchy, one may also use an property path as attribute name (like a.b.c)
- value - value to be assigned to the attribute. The value is a constant, a variable valid for the data type of the selected instance or an expression.
- -Q -do not display updated value
- -Dn - re-direction to other data source.
- -Cn - re-direction to other collection in the hierarchy or in the data source referenced by -Dn.
An assignment operator (=) may be passed between attrname and value, but need not.
Syntax:
sav attrname [=] value -Dn -Cn -Q
Examples:
sav name='Smith' // change name value to 'Smith'