ABL_MOVE_REQUIRED_LENGTH - Required length for MOVE to a type C target field
Functionality
If you want to use a MOVE statement to move data from a source field to a type C field, this functionmodule calculates the required length of the target field so that no data is lost. If the type C field is then reassigned to the source field, the contents of the source field do not change.
Example
Applied to the source field type F (float point number), the function module returns 24 as the requiredlength because a floating point number can include
Notes
The module does not check each time whether the combination of input values makes sense.
If you use this function module to calculate the "safe" target field length for WRITE TO or the output length for WRITE, you should be aware of the following:
- The maximum output length for WRITE is 255, whereas the target field length for WRITE TO is unrestricted.
- This function module ignores formatting characters with WRITE or WRITE TO.