Hi,

I encounter a problem when calling an OS400 command from a Java-program (on
OS400, V5.1):

Exception running OS400-command: CRTLIB
MANOLIB1com.ibm.as400.access.AS400SecurityException: Password is not set.
com.ibm.as400.access.AS400SecurityException: Password is not set.

I use the following instructions:

import com.ibm.as400.access.*;
AS400 sys = new AS400("localhost");
CommandCall cmd = new CommandCall(sys);
cmd.run("CRTLIB MANOLIB1");

The problem is new on OS400 V5.1, and the program works correctly on OS V4.4.

Replacing the first instruction by <AS400 sys = new AS400("localhost",
"*current", "*current");> does not make any change.

But replacing the instruction by <AS400 sys = new AS400("10.11.12.13", "nothum",
"12345678");> resolves the problem.

As the program should run the OS400-calls on the local machine (same AS400 as
the one, that starts the Java-class) and it is not our policy to hardcode
user-names and passwords I need a way to work as in the previous version.

Any help would be appreciated,

     Marc




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.