Page 1 of 1.

SAS Length Function

Length functions in SAS: LENGTH / LENGTHN / LENGTHC / LENGTHM.

By Subhro | October 24, 2020 | 2 Comments

There are variations of SAS Length Functions, like LENGTH, LENGTHN, LENGTHC, and LENGTHM. These functions are used to find the length of a character string in SAS, but they work differently in terms of syntax and usage. For example, LENGTH returns the position of the rightmost non-blank character in a string, while LENGTHN returns 0 for a blank or missing string. LENGTHC considers both blank and non-blank characters, and LENGTHM returns the amount of memory allocated for the string.

https://brandfetch.com/9to5sas.com