Retrieving Job Status from the AS/400 using JTOpen
Hi ,
I am using a program to retrieve job status (i.e. whether a job is in delay wait or message wait using the
if (job.getStatus.equalsIgnoreCase(job.ACTIVE_JOB_STATUS_WAIT_DELAY)
But however , even when the Job is in DLYW (Delay Wait) status on the AS400 , while retrieving it by System.out.println(job.getStatus()) , it says that the job is in OUTQ. or the job is ACTIVE, this is not the case , what could have possibly gone wrong ??
serverJobList.setUser("TDBCHP");
serverJobList.setName("TDC2OPRC);
Enumeration jobEnum=serverJobList.getJobs();
for (int j=0;jobEnum.hasMoreElements();j++){
currentJob = (Job) jobEnum.nextElement();
System.out.println(currentJob.getStatus());
} // for loop
This returns *OUTQ even when the Job is in DLYW status.
Any ideas ??