|
I want to CANCEL the job that is in ACTIVE STATUS on OS400.
AS400 sys = new AS400(); Job JobObj = new Job(system, jobName, userName, jobNumber); JobObj.end(0);
The Job ends immediately but the status of the job is ABNORMAL. I want the job status to be CANCEL or ABORT
Specify a end delay of more than zero or -1. *IF* the job has logic to detect that it's been canceled (few do in my experience) that will give it time to end itself normally.
Otherwise, when the delay expires, the job will be ended immediately.
From the javadoc on Job.end ...
To end the job controlled, specify -1 for the delay. To end the job immediately, specify 0 for the delay. Specify any other amount of delay time (in seconds) allowed for the job to cleanup.
david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.