Test whether a string is lexically less than another string, based on the
ASCII collating sequence.
Class
Elemental function
Argument type and attributes
STRING_A
must be of type default character.
STRING_B
must be of type default character.
Result type and attributes
Default logical.
Result value
If the strings are of unequal length, the comparison is made as if the
shorter string were extended on the right with blanks to the length of the
longer string.
If either string contains a character not in the ASCII character set,
the result is undefined.
The result is true if STRING_A precedes STRING_B in the ASCII collating
sequence; otherwise, the result is false. Note that the result is false if
both STRING_A and STRING_B are of zero length.
Examples
LLT ('ONE', 'TWO') has the value .TRUE..
Specific Name
Argument Type
Result Type
Pass As Arg?
LLT
default character
default logical
yes 1
Notes:
IBM Extension: the ability to pass the name as an argument.