I want to get IBM i job details using that job number. i get all job list. but i want to get job details using it's job no. Please help me friends.
Edit: I believe the question is 'How can I get job details given a fully qualified job name?'
try {
AS400 system = new AS400 ("SERVER","USER", "PASS");
JobList jobList = new JobList(system);
Enumeration list = jobList.getJobs();
while (list.hasMoreElements()) {
Job j= (Job) list.nextElement();
String GCPU = Integer.toString(j.getCPUUsed());
System.out.println("Name " + j.getName() + " | Job NO : " + j.getNumber() + " | User : " + j.getUser() + " | CPU USED : " + j.getCPUUsed());
}
} catch (Exception e) {
System.out.println(e);
}