Entering content frame

RPAD(x,a,y,n) 

RPAD(x,a,y,n) is a string function that inserts the character string y at the end of the character string x as often as specified by the parameter a. Leading and subsequent blanks in the character string x are truncated. The optional parameter n defines the maximum total length of the character string created.

The result of the parameter a must be a positive integer.

The optional parameter n must be greater than or equal to the total LENGTH(x)+a*LENGTH(y).

 

Result of the RPAD(x,a,y,n) function

RPAD(x,a,y)
x must identify a CHAR or VARCHAR column.

The maximum length of the character string is the length of the character string x.

x or a is the NULL value

NULL value

a is the special NULL value

Error message

 

See also:

LPAD(x,a,y,n)

Leaving content frame