EXPAND(x,n)

EXPAND(x,n) is a string function that adds x (string specification) blank characters (code attribute ASCII, UNICODE) or binary zeros (code attribute BYTE) to the end of a character string as are needed to give the string the length specified by n, an unsigned integer. Only expressions that supply an alphanumeric value are permitted as string specifications.

Result of the EXPAND(x,n) Function

x is a NULL value

NULL value

See also:

LFILL(x,a,n)

RFILL(x,a,n)