× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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",
"DTAARA");
CharacterDataArea dataArea = new CharacterDataArea(system,
path.getPath());

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.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.