Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrieving Job Status from the AS/400 using JTOpen

807569Jun 24 2006
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 ??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2006
Added on Jun 24 2006
0 comments
316 views