setRemoteUser()

The system function SysLib.setRemoteUser sets the userid and password that are used on calls to remote programs.

  SysLib.setRemoteUser(
    userID STRING in,
    password STRING in)
userID
The user ID on the remote system.
password
The password on the remote system.

When the linkage options part, callLink element, property remoteComType is CICSJ2C, CICSECI, or JAVA400 on a remote call, authorization is based on the values (if non-blank) that are passed to SysLib.setRemoteUser. If a value is blank or not specified, the value is sought in the file csouidpwd.properties, which includes the properties CSOUID (for the user ID) and CSOPWD (for the password). If you use neither approach, EGL runtime makes the call without a username and password.

Before invoking SysLib.setRemoteUser, your code can issue Java™ access functions that display a dialog box to prompt the user for the user ID and password. You can use one or both values in csouidpwd.properties as a default that takes effect when the user does not provide the information.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.