Returns the result of inserting a string to the left of another string with a certain length. It can be padded on the right with a character.
LEFT(s,l,c)
LEFT returns a string which is formed by inserting a string s to the left of another string with length l. An optional padding character c can be attached to the right.
dcl s char (40) var; dcl t char (40) var; s = 'This string is 33 characters long'; t = left(s, 40, '+'); put skip list (t);
will print:
This string is 33 characters long+++++++
None.