In my CL program, I have an Opnqryf and a Rcvf following that. It reads the file till EOF has reached. Now I have another opnqryf on the same file. I have closed the file just before the opnqryf but since the first loop has reaced eof, my second opnqryf is not retrieving any records. I dont want to take the number of records inhand as the data may change while am reading the file. And other than TfrCtl is there any better solution to achieve this?
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!