── STATUS ──<output file name>─────────────────────────────────────────┤
Explanation
The STATUS command can be used to inquire about any schedule session initiated by the user. If the session is not yet in progress, “#SCHEDULE #<schednum> IS SCHEDULED” is displayed; if AFTER <time> is pending, that information is also displayed.
If the session is in progress, information similar to the following is returned:
#SCHEDULE #00017 STARTED AT 12:34 READ 12 (THRU 2100), WRITTEN 146, RESUMED AFTER 2 ERRORS SESSION 5214, TASK/<LSN> 5215/119
The <schednum>, start time, lines read and written, sequence number last read, and session number always appear. The error count appears if it is nonzero.
If the session is completed, a message indicates normal termination. If the session is abnormally terminated, a message indicates the nature of the abnormal termination.
A STATUS inquiry made during the first minute after CANDE is restarted may show a status like “#SCHEDULE #00008 STARTED AT 09:27.” No further information is displayed because the session was running when CANDE was aborted and the schedule facility has not yet been reinitialized. As soon as schedule initialization is completed, the status is changed to “AWAITING RESTART” or “ABORTED BY SYSTEM FAILURE; NO RESTART.”
-
The minimum abbreviation is STAT. Further abbreviation produces a START command. The STATUS command is distinct from the ?STATUS control command.
-
If your system is running multiple copies of CANDE and you are logged on to at least two copies of CANDE, you might encounter some unexpected results with the STATUS command.
Because scheduled output files (created by the SCHEDULE command executed from one copy of CANDE) are visible to other copies of CANDE, it is possible to get incorrect information about the status of scheduled output files when you issue the STATUS command from a copy of CANDE that did not initiate the scheduled session.
The STOP command also has no effect if the scheduled session was begun from another copy of CANDE.
General Information contains information on multiple copies of CANDE.
Example
STATUS SCHOUT/SCH/10 #SCHEDULE #00014 STARTED AT 13:07 READ 5 (THRU 500), WRITTEN 19 SESSION 7958, TASK/<LSN> 7960/39