pjs.getSize()
Returns the number of bytes occupied by a constant, field, or a data structure
Parameters
Field or data structure
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()