In The Spotlight
Overlapping Subfields. Miss the previous excerpt on Data Structure? Read it here: Part I.
By Brian Meyers and Jim Buck
Editor's Note: This article is excerpted from chapter 4 of Programming in ILE RPG, Fifth Edition.
The locations of subfields within a data structure can overlap, and the same position within a data structure can fall within the location of several subfields. A data structure declaration can use two keywords, Pos (Position) and Overlay, for these purposes.