9.3.132 REPEAT (STRING, NCOPIES)

Description:  Concatenates several copies of a string.  
Class:  Transformational function; Generic 
Arguments:  STRING Must be scalar and of type character. 
  NCOPIES Must be scalar and of type integer. It must not be negative.  
Results:  The result is a scalar of type character and length NCOPIES x LEN(STRING). The kind parameter is the same as STRING. The value of the result is the concatenation of NCOPIES copies of STRING. 

Examples

REPEAT ('S', 3) has the value SSS.

REPEAT ('ABC', 0) has the value of a zero-length string.


Previous Page Next Page Table of Contents