I am working on a project where I need to delete old transactions from a particular file in a particular library. The file has 2 keys. For deleting the older records, a particular logic flow is followed. The actual delete process is written in a Cobol program. The cobol program is called inside a CL. In the Cobol, the file is referred to as having a single key, however actually it has 2 keys. I tried using OPNQRYF inside the CL, just before calling the Cobol. But still the records are not getting deleted from the file. It appears as if it the OPNQRYF impact is not getting reflected in the Cobol. Can anyone suggest on 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!