rp_asynchserver::canceljob



o.canceljob( tcJobID)

Return Value

True or False

Parameters

tcJobID
The job id number of the job to cancel

Remarks

This method is used to cancel a job in the Job Server table. This is an asynchronous
method call and hence control is returned to the user before the Job is cancelled.
This method can be called from an instance of the object which is not actually running
the process. Essentially it sets a flag in the job server table and the process running
the job will monitor that flag. If it sees that it should cancel itself it will do so.


Example

o.CancelJob('DFFGF444')

This would;
1.	Set a flag in the Job Server table for job 'DFFGF444' to tell it to cancel
2.	Return control to the user

See also:

Class rp_asynchserver


Last Updated: 23/11/2005