Returns the result of inserting a string in the center or one position to the left of the center of another string with a certain length. It can be padded on the left and on the right with a character.
CENTERLEFT(s,l,c)
dcl s char (40) var;
dcl t char (40) var;
s = 'This string is 33 characters long';
t = centerleft(s, 40, '+');
put skip list (t);
will print:
+++This string is 33 characters long++++
None.