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