?TASKS

Syntax

── ? ── TASKS ─────────────────────────────────────────────────────────%

Explanation

The ?TASKS command displays information about all discontinued tasks that are in the mix that were initiated from retracted stations.

A station is said to be retracted from CANDE when the LSN associated with the pseudostation is returned to the system. For example, when a CANDE session is initiated on a station under the control of Transaction Server (using the ?ON CANDE command), Transaction Server allocates a pseudostation and transfers this station to CANDE. A subsequent ?CLOSE command from this session makes Transaction Server deallocate this pseudostation. The LSN associated with this pseudostation is returned to the system and is retracted from CANDE.

When a station is retracted while running a task, CANDE discontinues the task by invoking a DS command. If the task fails to terminate after the DS command, CANDE marks the task as DSed. If there are any such DSed tasks, CANDE initiates a dummy stack which waits on an operator AX with the following message displayed:

#CANDE HAS ONE OR MORE TASKS RUNNING UNDER 
 IT THAT HAVE BEEN DS-ED AS THE STATION 
 INITIATING THEM HAS BEEN RETRACTED FROM
 CANDE BUT THESE TASKS ARE STILL ACTIVE. 
 PLEASE USE THE "?TASKS" CONTROL COMMAND TO
 GET A LIST OF THESE TASKS.

The following message and list of discontinued tasks waiting to be terminated are displayed when the ?TASKS control command is issued:

THE FOLLOWING TASKS HAVE BEEN DS-ED AS THE
STATIONS THAT HAVE INITIATED THEM HAVE BEEN
RETRACTED FROM CANDE BUT THE TASKS ARE STILL
ACTIVE:
<mix number>  <name of the task>

If there are no such tasks then the user is informed with the following message:

ALL DS-ED TASKS HAVE TERMINATED.

Example

?TASKS
#THE FOLLOWING TASKS HAVE BEEN DS-ED AS THE 
 STATIONS THAT HAVE INITIATED THEM HAVE BEEN
 RETRACTED FROM CANDE BUT THE TASKS ARE STILL 
 ACTIVE:
1387           <USERCODE>TEST/1 ON <PACKNAME>
1389           <USERCODE>TEST/2 ON <PACKNAME> 

If there are no such tasks, then the response is as follows:

?TASKS
#ALL DS-ED TASKS HAVE TERMINATED.