Returns the length of an argument.
| Category: | 
DBCS
 | 
| Restriction:  | 
I18N Level 2
 | 
| Tip:  | 
Non-DBCS equivalent function is LENGTH in 
SAS Language Reference: Dictionary.
 | 
- 
argument
 
- 
specifies any SAS expression.
 
The KLENGTH function returns an integer
that represents the position of the rightmost non-blank character in the argument.
If the value of the argument is missing, KLENGTH returns a value of 1. If
the argument is an uninitialized numeric variable, KLENGTH returns a value
of 12 and prints a note in the SAS log that the numeric values have been converted
to character values.
 
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.