|
Add /qibm/proddata/java400/jt400ntv.jar to your classpath. Read the following for details. http://www-1.ibm.com/servers/eserver/iseries/toolbox/faq.htm#faqT David Wall AS/400 Toolbox for Java "Xu, Weining" <Weining.Xu@AIG.co To: "'JAVA400-L@midrange.com'" <JAVA400-L@midrange.com> m> cc: Sent by: Subject: Command call by using an AS400 connection java400-l-admin@mi drange.com 11/12/2001 07:59 AM Please respond to java400-l 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); _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
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 [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.