5 pts.
 database file not being rebuilt
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

Software/Hardware used:
ASKED: April 13, 2005  2:34 PM
UPDATED: April 13, 2005  2:46 PM

Answer Wiki:
Is PGM A closing the file once it is finished? If not, issuing an explicit close should solve the problem.
Last Wiki Answer Submitted:  April 13, 2005  2:46 pm  by  mygoodname   0 pts.
All Answer Wiki Contributors:  mygoodname   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _