Our part of the company controls what objects our programs on our AS/400 work, running them with different liblists. But we know that some operations can't be controlled by this. Our program needs to read the liblist and decide on some of the libraries in it (and how to act).
But we couldn't find the API to read the liblist entries from within a program. We expect to have an API that lets us read through the liblist entries by priority / gives us an array with them. We prefer RPG or CL but ILE would work too.