In the following example, a LONGWORD field (QUANTITY) follows a BYTE
field. The PRODUCT_NO field spans 64 bits, the DATE_ORDERED field
spans 64 bits, and the STATUS_CODE field spans 8 bits. The ALIGNED
clause causes the three bytes following STATUS_CODE to remain empty
and aligns QUANTITY exactly 160 bits beyond the start of the record.
IN_STOCK STRUCTURE.
PRODUCT_NO DATATYPE IS TEXT
SIZE IS 8 CHARACTERS.
DATE_ORDERED DATATYPE IS DATE.
STATUS_CODE DATATYPE IS BYTE.
QUANTITY DATATYPE IS LONGWORD
ALIGNED ON LONGWORD.
LOCATION ARRAY 1:4
DATATYPE IS TEXT
SIZE IS 30 CHARACTERS.
UNIT_PRICE DATATYPE IS LONGWORD SCALE -2.
END IN_STOCK STRUCTURE.