Data structures declared with the QUALIFIED keyword require dot notation to access subfields, preventing namespace collisions:
DCL-DS wOrder QUALIFIED;
Qty INT(5) INZ(3);
Price PACKED(7:2) INZ(9.99);
END-DS;
DCL-S wTotal PACKED(9:2);
wTotal = wOrder.Qty * wOrder.Price;
DSPLY wTotal; // " 2997" (DSPLY image: 9 right-aligned digit positions, no decimal point, no sign)
Qualified field references work everywhere a variable name is valid: in assignment targets, expressions, IF conditions, BIF arguments, and DSPLY statements.