When you use multiple views on one single file, the same read pointer is shared by all views. Consequently the pointer can be positioned incorrectly in a read loop.
Recommended approach: use two different files, A and B:
A and B can be two logical files of a same physical file.
A can be a physical file, B a pseudo-physical one without data (= copy of an object) to which you apply an OVRDBF command (only on the AS/400).