![]() ![]() |
Reference Type: Supported, Category: TaskMan, ICR#: 10063
The ISQED^%ZTLOAD API returns whether a task is currently pending. Pending means that the task is any of the following:
It also returns the DUZ of the task's creator and the time the task was scheduled to start.
ISQED^%ZTLOAD
Make sure to perform the following steps before calling this API:
ZTSK: |
(required) Task number of the task to look up. The task must be currently defined on the volume set to be searched, or the lookup fails. |
ZTCPU: |
(optional) The volume set TaskMan should search for the task being looked up. If not passed, TaskMan searches the current volume set. Unlike the ^%ZTLOAD API ZTCPU input variable, this one does not accept a second :-piece specifying the CPU. It only specifies a volume set to search. |
ZTSK(0): |
ZTSK(0) is returned as follows:
|
ZTSK("E"): |
(sometimes returned) The error code, returned when some error condition prevented a successful lookup. The codes and their values are:
|
ZTSK("D"): |
(sometimes returned) The date and time the task was scheduled to start, in $HOROLOG format. It is returned only if ZTSK(0) equals zero (0) or 1. |
ZTSK("DUZ"): |
(sometimes returned) Holds the DUZ of the user who created the task. It is returned only if ZTSK(0) equals zero (0) or 1. |