Chinaunix首页 | 论坛 | 博客
  • 博客访问: 598438
  • 博文数量: 154
  • 博客积分: 10208
  • 博客等级: 上将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-16 14:02
文章分类

全部博文(154)

文章存档

2012年(4)

2011年(44)

2010年(50)

2009年(4)

2008年(52)

我的朋友

分类:

2010-07-31 17:46:53

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 1 leading sign, up to 17 valid digits, 1 decimal point, the letter "E", 1 exponential sign and up to 3 exponential places.

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.
阅读(619) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~