|
Hello! One of my job blows with the error "I/o Error CPF5125 on Opening the file F' once in a while. After long hard fight that on particular rare occasion, a program (say A) is called and it opens a file F in input mode and returns the control without switching on the LR and that conflicts with my intial program (say program B) which always opens the same file output to write a new record. Since the file has shared ODP as *YES, B bombs with this error once A has got rhe rare chance to execute. I tried my best to fix the program A to open in output mode but it causes a ripple effect in others existing programs. So I decided to override the file F in my calling program with Shared ODP as *NO with the override level as *JOB before calling the program A and remove the override once the call to A gets over. After the changes, when I checked the joblog, F gets opened in two instances onw with Shared ODP *no and other as *YES. Hopefully this fixes my problem. But I want to make sure that that I did not open the panther box ;) I know it will be hardr to comment without seeing the code, but any suggestion and checkpoints are most welcome. Thanks! Sivakumar --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.