简体   繁体   中英

How to get as400 (jt400) Sign on User List

I'm developing IBM AS400 Client Access Software. I'm trying to get Sign on User List. there are have more than 70 sign on Users, but my code give me only 6 User Details. Can anyone help me to do this Friends..

My Code :

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();
}

System security usually restricts who can view user profile information. "USER" must have the proper authority.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM