Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


LENGTH

The LENGTH function returns an integer equal to the length of the argument in national character positions for arguments of usage NATIONAL and in alphanumeric character positions or bytes for all other arguments. An alphanumeric character position and a byte are equivalent.

The type of the function is integer.

Format
Read syntax diagramSkip visual syntax diagram>>-FUNCTION LENGTH--(--argument-1--)---------------------------><
 
argument-1
Can be:

The returned value is a nine-digit integer determined as follows:


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)