我正在开发 IBM AS400 客户端访问软件。我正在尝试登录用户列表。有 70 多个登录用户,但我的代码只给了我 6 个用户详细信息。任何人都可以帮我做这个朋友..
我的代码:
try {
AS400 system = new AS400 ("SERVER","USER", "PASSWORD");
UserList userList = new UserList(system);
Enumeration list = userList.getUsers();
while (list.hasMoreElements()) {
User U = (User) list.nextElement();
long UID = U.getUserID();
String SUID = Long.toString(UID);
String DESCRIPTION = U.getDescription();
int USD_STORAGE = U.getStorageUsed();
String USD_S = Integer.toString(USD_STORAGE);
String COUNTRY_ID = U.getCountryID();
String JOB_DESCRIPTION = U.getJobDescription();
String STATUS = U.getStatus();
String[] JOBDATA = {SUID,DESCRIPTION,USD_S,COUNTRY_ID,JOB_DESCRIPTION,STATUS};
DTM.addRow(JOBDATA);
}
} catch (Exception e) {
e.printStackTrace();
}