database file not being rebuilt

5 pts.
Tags:
RPG
I have a CLLE program which does the following: 1. clrpfm itmdata 2. call rpgle pgm A to rebuild itmdata file 3. clrpfm itmsrc (item search file) 4. call rpgle pgm B to rebuild itmsrc file using itmdata All of these programs are compiled to run in a specific activation group (call it A) My problem is that the rpgle program called in step 4 doesn't rebuilt the itmsrc file. It ends immediately when it tries to read the first record of file itmdata and returns nothing (itmdata is read using a subprocedure call coded in an eval statement) Once the CLLE program ends, I can directly call rpgle pgm B and the itmsrc file is rebuilt. I think my problem has to do with the fact that I'm running in an activation group when file itmdata is rebuilt and when program B tries to use it, the pointer is at the end of the file. Activation group is fairly new to me (program B is a third-party application). Hope I have provided enough info. Thanks
ASKED: April 13, 2005  2:34 PM
UPDATED: April 13, 2005  2:46 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is PGM A closing the file once it is finished? If not, issuing an explicit close should solve the problem.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following