pc.l
Various length processing functions.
Syntax
l{maxlength{,maxvalue}} l0
Description
invokes the length function, either restricting processing to values that fall within certain length restrictions or simply displaying the length of a given value.
The 'maxlength' parameter indicates that the value will be output only if the length of the string is less than the 'maxlength' parameter, otherwise a null is returned. If 'maxlength' is 0 (zero), the length of the data is returned.
Example
l0
Returns the length of field.
l9
Outputs data if field length is exactly nine characters.
l3,9
Outputs data if field length is greater than three characters and less than
nine characters.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
