Hi, I have created a module with CLOSQLCSR=*ENDMOD and I'm using a procedure in module from old RPG program which is using native I/O. Now when I use CLOSQLCSR=*ENDACTGPR, the OPD was getting reused but program is throwing error record locked as native I/O reads the same file in next step. Now to release lock I used CLOSQLCSR=*ENDMOD but now OPD is deleted every time. Please let me know how can I make my program reuse the ODP.
Hi , I didn't get your question :( . I am using update statement in the module and after returning to main program read the same record using native i/o. In this situation it is giving me record lock error under CLOSQLCSR=*ENDACTGPR
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!
Discuss This Question: 2  Replies