On 22/05/2008, at 4:56 PM, 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.

But if I use the library name it works....

Code:

QSYSObjectPathName path = new QSYSObjectPathName("%ALL%", "TEST",
"DTAARA");
CharacterDataArea dataArea = new CharacterDataArea(system,
path.getPath());

Any suggestions?

The code you show compiles and runs OK for me. However, it doesn't actually DO anything. No exception should be thrown by either of these lines of code. So ... where in your code does the exception occur ... and ... what are you doing with the data area after you instantiate it? Does what you do with the data area make sense for a *ALL library qualifier?

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




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-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.