NOTRUNC
Syntax
NOTRUNC (<Field>)
Description
When using values of alpha fields in expressions trailing spaces get truncated. NOTRUNC ensures that the trailing spaces are taken into account in the expression.
Diagram
Returned value type
Realstring
Parameters
| Parameter | Description |
|---|---|
| <Field> | Alpha field not to be truncated of its trailing spaces. |
Example
// the following alpha's have been defined
sa-4 : alpha 4 value 'ab'
sa-6 : alpha 6 value 'klm'
sa-100 := sa-4 + sa-6
// sa-100 will have the value "abklm"
sa-100 := notrunc (sa-4) + sa-6
// sa-100 will have the value "ab klm"