I have a req:
i have a PF (PF1) from which i populate another PF (PF2).Now PF2 can contain max of 24 records.PF1 can have unlimited records.I need to fetch last 24 records from PF1 into PF2.Can any1 give any idea as how to do it?
My logic is:
i will read PF1 until %eof ,by incrementing a counter.
So i will get max records in PF1.Then i will call a CLP pgm,which will CPYF PF1 to PF2 from RCDNBR (counter-24) to counter.
After this i will read this file in my pgm.
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!