REPEAT

REPEAT returns a CHARACTER string consisting of (y + 1) concatenated copies of the string x.

Read syntax diagramSkip visual syntax diagramREPEAT( x, y)
x
Expression.

x should have CHARACTER type, and if not, it is converted thereto.

y
Expression that specifies the number of repetitions. y should have FIXED type, and if not, it is converted thereto.

y must be nonnegative.

If y is zero, the result is x (converted to character as necessary).