Posted by: Mark Fontecchio
Programming, System i software
The way that RPG handles files on the System i requires intricate knowledge of how RPG works in order to make sure that references to a certain record field point where they should.
iDevelop has a good post outlining how pointing to the first of a sequence of fields in a record might be a risky venture. It explains that the data should be defined within a data structure in RPG to ensure “contiguous storage.” Check it out.