Michael Schmitz wrote:
I have a problem using QSYSObjectPathName. When I use the QSYSObjectPathName
with %ALL% I receive the following error message:

Exception in thread "main" com.ibm.as400.access.ObjectDoesNotExistException:
Library does not exist.

QSYSObjectPathName path = new QSYSObjectPathName("%ALL%", "TEST",
CharacterDataArea dataArea = new CharacterDataArea(system,

Well, the QSYSObjectPathName object is working properly ... the results of path.getPath() is '/QSYS.LIB/%ALL%.LIB/TEST.DTAARA'.

The thing is, %ALL% is not a valid library ... I think using %ALL% is only valid when you are trying to search for an object, not when you are trying to instantiate a specific object.

Even if it did work ... would you want to have to wait for the system to search every library on the system to find a single data area?

I would suggest you find a way to determine the library the data area is in.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.