pjs.getSize()



Returns the number of bytes occupied by a constant, field, or a data structure

Parameters
  1. Field or data structure

  2. All data (Boolean) - If true is specified, the value returned is the storage taken up by all elements or occurrences.

Return value

Numeric value

Example
pjs.define("data", { type: 'char', length: 20, varying: true }); pjs.define("field1", { type: 'char', length: 10 }); data = pjs.char(pjs.getSize(field1)); // data is "10"


RPG Equivalent 

%SIZE()