Concatenate several copies of a string.
Result Type and Attributes
Character scalar with a length equal to NCOPIES * LENGTH(STRING), with the same kind type parameter as STRING.
The value of the result is the concatenation of NCOPIES copies of STRING.
REPEAT ('H', 2) has the value 'HH'. REPEAT ('XYZ', 0) has the value of a zero-length string.