Description: | Returns the length of a character expression. | ||
Class: | Inquiry function; Generic | ||
Arguments: | STRING must be of type character; it can be scalar or array valued. | ||
Results: | The result is a scalar of type default integer. The result has a value equal to the number of characters in STRING (if it is scalar) or in an element of STRING (if it is array valued). |
Specific Name | Argument Type | Result Type |
---|---|---|
LEN | CHARACTER | INTEGER(4) |
CHARACTER | INTEGER(8) |
Examples
Consider the following example:
CHARACTER (15) C (50) CHARACTER (25) D
LEN (C) has the value 15, and LEN (D) has the value 25.