The length parameter as defined for vector variables is applied only when the resulting set command integer value is assigned to a vector variable using the following rules:
The length definition for the assigned variable specifies the maximum number of digits of the resulting set command operation value that can be assigned to the variable.
The resulting integer digit string from the set command operation must be equal to or less than the length definition and never greater than a 10-digit integer value of 4295967295.
If the result is greater than 4295967295 or the number of digits is greater than the length definition for the variable, the result is converted to a # character to indicate an overflow value. For example, if the definition for variable A is length = 5 and the result of the arithmetic operation is 1234567, the assignment to variable A is # indicating an invalid result.
If the resulting string is shorter than the length definition, leading zeros are not added to the digit string to match the variable length definition.
Note:
Length is always defined as 16 digits for assignment to the digits buffer. The rules described in this section are applied for assignment to the digits buffer in the same manner as assignment to a vector variable using length = 16.