%KLEFT and %QKLEFT Macro Functions

Left-aligns an argument by removing leading blanks.
Category: DBCS
Requirement: MAUTOSOURCE system option

Syntax

%KLEFT (text | text expression)
%QKLEFT (text | text expression)

Details

The %KLEFT and %KQLEFT macro functions left-align arguments by removing leading blanks. If the argument contains a special character or mnemonic operator, listed here, use %KQLEFT.
%KLEFT returns an unquoted result, even if the argument is quoted. %KQLEFT produces a result with the following special characters and mnemonic operators masked so that the macro processor interprets them as text instead of as elements of the macro language:
& % ' " ( ) + - * / < > = ¬ ^ ~ ; , # blank
AND OR NOT EQ NE LE LT GE GT IN