pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
expression
is any of the address types, except SGWADDR and SGBADDR which are 16-bits in length.
$LEN
$LEN returns an INT value that is the length, in bytes, of a variable.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
variable
is the identifier of a simple variable, array element, pointer, structure, or structure data item.
The compiler reports an error if you apply the $LEN routine to a structure that consists of an odd
number of bytes, exclusive of a pad byte.
You can avoid this error by using one of the following solutions:
Declare explicitly a 1-byte filler item at the end of structures that consist of an odd number of
bytes.
Use $BITLENGTH (page 295) instead of $LEN.
The compiler reports an error if you apply $LEN to an UNSIGNED variable or structure field. Use
$BITLENGTH to obtain the length of an UNSIGNED variable or structure.
322 Built-In Routines