<?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="Summary of user ID and password values on an AS400 object" /> <meta name="abstract" content="The following table summarizes how the user ID and password values on an AS400 object are handled by a Java program running on a server compared to a Java program running on a client." /> <meta name="description" content="The following table summarizes how the user ID and password values on an AS400 object are handled by a Java program running on a server compared to a Java program running on a client." /> <meta name="DC.Relation" scheme="URI" content="jvmset.htm" /> <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="valuesum" /> <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>Summary of user ID and password values on an AS400 object</title> </head> <body id="valuesum"><a name="valuesum"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Summary of user ID and password values on an AS400 object</h1> <div><p>The following table summarizes how the user ID and password values on an AS400 object are handled by a Java™ program running on a server compared to a Java program running on a client.</p> <div class="section"><div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr class="tablemainheaderbar"><th valign="top" width="33.33333333333333%" id="d0e27">Values on AS400 object</th> <th valign="top" width="33.33333333333333%" id="d0e29">Java program running on a server</th> <th valign="top" width="33.33333333333333%" id="d0e33">Java program running on a client</th> </tr> </thead> <tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name, user ID, and password not set</td> <td valign="top" width="33.33333333333333%" headers="d0e29 ">Connect to the current server using the user ID and password of the job that started the program</td> <td valign="top" width="33.33333333333333%" headers="d0e33 ">Prompt for system, user ID, and password</td> </tr> <tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name = localhost</td> <td rowspan="3" valign="middle" width="33.33333333333333%" headers="d0e29 ">Connect to the current server using the user ID and password of the job that started the program</td> <td rowspan="3" valign="middle" width="33.33333333333333%" headers="d0e33 "><strong>Error:</strong> localhost is not valid when the Java program is running on a client</td> </tr> <tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name = localhost User ID = *current</td> </tr> <tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name = localhost User ID = *current Password ID = *current</td> </tr> <tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name = "sys"</td> <td valign="top" width="33.33333333333333%" headers="d0e29 ">Connect to server "sys" using the user ID and password of the job that started the program. "sys" can be the current server or another server</td> <td valign="top" width="33.33333333333333%" headers="d0e33 ">Prompt for user ID and password</td> </tr> <tr><td valign="top" width="33.33333333333333%" headers="d0e27 ">System name = localhost User ID = "UID" Password ID = "PWD"</td> <td valign="top" width="33.33333333333333%" headers="d0e29 ">Connect to the current server using the user ID and password specified by the Java program instead of the user ID and password of the job that started the program</td> <td valign="top" width="33.33333333333333%" headers="d0e33 "><strong>Error:</strong> localhost is not valid when the Java program is not running on a client</td> </tr> </tbody> </table> </div> </div> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="jvmset.htm" title="The AS400 object allows special values for system name, user ID, and password when the Java program is running on the IBM Developer Kit for Java (i5/OS) Java virtual machine (JVM).">Setting system name, user ID, and password with an AS400 object in the i5/OS Java virtual machine</a></div> </div> </div> </body> </html>