The AS400 class in the micro package (com.ibm.as400.micro.AS400) provides a modified subset of the functions available in the AS400 class in the access package (com.ibm.as400.access.AS400). Use the ToolboxMe for iSeries™ AS400 class to sign on an iSeries server from a Tier0 device.
The AS400 class provides the following functions:
The connection to the MEServer is made implicitly. For example, after you create an AS400 object, you can use the run() method in CommandCall to automatically perform connect(). In other words, you do not explicitly call the connect() method unless you want to control when the connection is established.
The following example shows how to use the AS400 class to sign on to on an iSeries server:
AS400 system = new AS400("mySystem", "myUserid", "myPwd", "myMEServer"); try { system.connect(); } catch (Exception e) { // Handle the exception } // Done with the system object. system.disconnect();