Previous Page | Next Page

Functions for NLS

KLENGTH Function



Returns the length of an argument.
Category: DBCS
Restriction: I18N Level 2
Tip: Non-DBCS equivalent function is LENGTH in SAS Language Reference: Dictionary.

Syntax
Arguments
Details

Syntax

KLENGTH(argument)


Arguments

argument

specifies any SAS expression.


Details

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.

Previous Page | Next Page | Top of Page