![]() ![]() |
Reference Type: Supported, Category: TaskMan, ICR#: 10063
The STAT^%ZTLOAD API looks up tasks and retrieves their current status. The status of a task returned by STAT^%ZTLOAD is expressed in the general terms of whether the task:
ZTSK(1) and ZTSK(2) return the code and text
of the current status. This status is an abstraction based on the more complex
system used by TaskMan.
An active task is one that either is expected to
start or is currently running. An inactive task does not start in the future
without outside intervention; this can be because it:
The "running" status is not based on
direct examination of the system tables but is inferred from TaskMan's
information about the task.
When interpreting the output of STAT^%ZTLOAD, consider that:
STAT^%ZTLOAD
Make sure to perform the following steps before calling this API:
ZTSK: |
(required) The task number to look up. It must be defined on the current volume set. |
ZTSK(0): |
Returns:
|
ZTSK(1): |
Numeric status code from 0 to 5 indicating the status of the task. |
ZTSK(2): |
Status text describing the status of the task. Its value corresponds with the status code in ZTSK(1). The possible values and their meanings are as follows:
|