ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/micro400.htm

69 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="AS400 class" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="micro400" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>AS400 class</title>
</head>
<body id="micro400"><a name="micro400"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">AS400 class</h1>
<div><p></p>
<div class="section"><p>The AS400 class in the micro package (<a href="javadoc/com/ibm/as400/micro/AS400.html#NAVBAR_TOP">com.ibm.as400.micro.AS400</a>) provides a modified subset
of the functions available in the <a href="as400obj.htm#as400obj">AS400
class in the access package</a> (com.ibm.as400.access.AS400). Use the ToolboxMe
for iSeries™ AS400
class to sign on an iSeries server from a <a href="microconcept.htm#microconcept__tier0">Tier0
device</a>.</p>
<div class="note"><span class="notetitle">Note:</span> To use ToolboxMe for iSeries classes, you must separately
download and set up the ToolboxME for iSeries component. For more information,
see <a href="microsetup.htm#microsetup">Downloading and setting up ToolboxME
for iSeries</a>.</div>
<p>The
AS400 class provides the following functions:</p>
<ul><li><a href="javadoc/com/ibm/as400/micro/AS400.html#CONNECT()">Connect</a> to the MEServer</li>
<li><a href="javadoc/com/ibm/as400/micro/AS400.html#DISCONNECT()">Disconnect</a> from the MEServer</li>
</ul>
<p>The connection to the MEServer is made implicitly. For example, after
you create an AS400 object, you can use the run() method in <a href="microcmdcall.htm#microcmdcall">CommandCall</a>
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.</p>
</div>
<div class="section"><h4 class="sectiontitle">Example: Using the AS400 class</h4><p>The following example
shows how to use the AS400 class to sign on to on an iSeries server:</p>
<pre> AS400 system = new AS400("mySystem", "myUserid", "myPwd", "myMEServer");
try
{
system.connect();
}
catch (Exception e)
{
// Handle the exception
}
// Done with the system object.
system.disconnect();</pre>
</div>
</div>
</body>
</html>