|
Hi, I am running a java program on AS/400 which contains a command call by using AS/400 Toolbox for Java. The program is running on AS/400. I was expecting that the created AS400 object would use the default user ID and password as the current AS/400 user. The code segment looks like this: try{ AS400 sys = new AS400("systemName"); CommandCall cmd = new CommandCall(sys); cmd.run(RGZPFM FILE(myLibrary/myFile); System.out.println("file reorganized."); } catch(Exception e){ System.out.println("Command Call error: "+e.getMessage()); } and I got: "Command Call error: Password is not set. " I checked AS400 API. It says: "f running from an AS/400 to another AS/400 or to itself, the system name, user ID, and password do not need to be supplied. These values default to the local system. For the system name, the key word localhost can be used to specify the local AS/400. For the user ID and password, *CURRENT can be used." should I use something like: AS400 sys = new AS400(localhost, *CURRENT, *CURRENT);
As an Amazon Associate we earn from qualifying purchases.
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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.