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

REPEAT

REPEAT returns a bit, character, graphic or widechar string consisting of x concatenated to itself the number of times specified by y. That is, there are (y + 1) occurrences of x.

Read syntax diagramSkip visual syntax diagram>>-REPEAT(x,y)-------------------------------------------------><
 
x
Bit, character, graphic or widechar expression to be repeated. If x is arithmetic, the following conversions occur:
y
Expression. If necessary, y is converted to a real fixed-point binary value.

If y is zero or negative, the string x is returned. For an example of the REPEAT built-in function, see COPY.


Terms of use | Feedback

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