I have a very simple program which is reading records from a work file for writing to a subfile but the *Loval Setll is positioning to the last record in the file instead of the first. When I do my subsequent READ, I am getting %EOF. I have checked %ERROR (0) and %STATUS (0) after the SetLL but still am getting positioned to the last record. The file is not defined with descending keys so I am baffled as to why this is happening. Would someone please help? I am including the Fspec and Cspecs.
FARWRKTRN UF A E K Disk UsrOpn prefix(awt)
C *Loval SetLL ARWRKTRN
Thank you in advance for your assistance!
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!