|
WRKOBJ seems to only show you the one you have access to. We had a person who had two copies of the file in their library list. They called a program to use it and it bombed. They did a WRKOBJ and used option 5 and it looked ok. I went over to their session and instead of using WRKOBJ I used DSPOBJD *libl/object and it bombed. That's how we found out they had two in their library list. Instead of implicitly opening the program in your program (if you are using RPG) open it explicitly. Then check the status code on the open. If it fails because you do not have authority, then call an api to list this object in your library list. Process that user space to find the desired object. Then change the variable used in the EXTFILE keyword to point to this new file. Who needs CL and overrides for this? Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.