TRIML
The TRIML function performs a left trim on a string.
Syntax 1
Syntax 2
Arguments
• arg-1 must be a alphanumeric data item or literal.
Result
The function returns the value of arg-1 stripped of any leading character whose hex value is less than 0x21.
Examples
Example - Display a combined message after trimming the spaces from the variable part.
working-storage section. 77 w-name pic x(32) value " John". ... procedure division. ... display "Hello " function triml(w-name) ", how are you?". |