NET/MASTER Network Control Language (NCL) Reference Manual

COPIES
Built-in Functions
106126 Tandem Computers Incorporated 4–31
COPIES The COPIES built-in function returns a string made up of repetitions of another string.
An output string longer than the maximum supported length of 32,000 characters
results in an error.
COPIES(
string
,
n
)
string
specifies the string to be copied.
n
specifies the number of times the specified string is to be copied.
n
must be a
nonnegative whole number.
Example
In the following example, NCL copies the string “ABCD” three times, to give the
string “ABCDABCDABCD”:
&A = ABCD
&B = 3
&RESULT = COPIES(&A,&B)