How can we explicitly force a read statement to start reading from the beginning?
Use a SETLL with a key value of *LOVAL, or load your key with binary 0's on a keyed file or chain with a record number of 1 for a non-keyed (arrival sequence) file.
Dig Deeper on RPG iSeries programming
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.