Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

REPEAT

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

Read syntax diagramSkip visual syntax diagram>>-REPEAT(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).


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)