bytes()

The system function SysLib.bytes returns the number of bytes in a named area of memory.

  SysLib.bytes(field fixedFieldOrArray in)
  returns (result INT)
result
A numeric item that receives the number of bytes in field. Two cases are notable:
  • If field is an array, the function returns the number of bytes in one element
  • If field is an SQL record, the function returns the number of bytes in the record, including the extra bytes; for details see SQL record internals
field
An array, item, or record

Example()

  result = SysLib.bytes(myItem);
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.