|
All, I've got an external program prototype with the EXTPGM keyword. Now, the way this is use is as follows: MyExtPgm(); System('ADDLIBLE MYOTHLIB POSITION(*FIRST)'); MyExtPgm(); Two programs named MyExtPgm exist, one in my standard library and one in the 'MYOTHLIB' The reason for the two programs is that I have two versions of a file, one in each library. When I ran my job, the first call to MyExtPgm worked fine. During the second call however, I got a level check because the file in MYOTHLIB was opened by the standard library program instead of the MYOTHLIB program. Now I just ran into this, so I haven't got real deep. But, when I got the level check, I did check the current library list of the job and it did have MYOTHLIB first. Also, I used DSPFD and DSPPGMREF to make sure that the file levels were what was expected for each version of the program. At this point, it seems that my ILE RPG program resolved the EXTPGM at the first run; thus finding the standard copy. When it was called again after changing the library list the name wasn't re-resolved. Is this really what is going on???? Or am I crazy??? If it is working as it is supposed to, how do I get around it? Thanks, Charles
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.