× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Siva,
If I were in your situation, I will check following points,

1. What is the scope of my override(If Pgm A has been submitted from Program B)?
2. At what level I should issue commit, this is tricky, even if these programs 
are called in the same job, you will have different commit Ids if commit in 
both programs.

The approach I would think is better than this is as follows,
if there is going to be only one record or say less number of I/Os involved in 
Program A 
then 
Pass the record to be created in PRgm A to Program B using an Array as 
parameter. Each element of this array is going to be an Externally described 
data structure.

this way I think we will not have any headaches of Overrides, commits...

This is just a suggestion. Hopefully we get some more inputs for your problem

regards,
Srini


----- Original Message ----
From: Sivakumar Kanagavel <srkas400@xxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Saturday, 7 October, 2006 12:17:26 PM
Subject: CPF5125 | Help Needed.


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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.