2. This program assumes the first command line parameter is the
name of the AS/400. If a parameter is passed to the program, the
setSystemName method of the AS400 object is used to set
the system name. The AS400 object also needs AS/400 sign-on information:
-
If the program is running on a workstation, the AS/400 Toolbox for Java program
prompts the user
for a user ID and password. Note: If a system name is not specified as a
command line parameter, the AS400 object also prompts for the system name.
-
If the program is running on the AS/400's Java Virtual Machine (JVM), then
the user ID and password of the user running the Java program is used.
In this case, the user does not specify a system name, but lets the system name default
to the name of the system that the program is running on.