set name = exp, ...The set command changes the value of a variable. Variables created with the var, env and input commands and preset variables can be changed with set. Qualification may be used on name.
If name is an array, an subscript may be included. If no subscript is specified, the set expression has the same format as the initialization expression for the var command. A brace enclosed list of expressions may be used or the name of another array. The assignment uses the array size declared for the variable.
The set command cannot change the type of name or the number of elements if the name is an array. exp is converted as needed. To change the type or array size of a variable, use var.