A stored procedure can also fail for more serious reasons than just a negative return result: Sybercron was unable to get a stream socket to Sybernet, Unix reboots, or the SQL server crashes. Sybercron will detect this and send you E-mail.
Entries in the CRON table that are submitted for execution are now written to the table CRON_HISTORY. It is now possible to look at all executions of your procedure and determine when they were started, finished, and what their result was. This table resembles the CRON table with the addition of some new columns.
The STATUS column in CRON_HISTORY will contain one of the following values:
The SENDER field is no longer optional and will default to your E-mail address (based on entries in CRON_EMAILS).
The STATUS column is a drop-down select list which is updated automatically each time the display is refreshed and reflects the current status of that procedure.
You can select a SCHEDULED procedure and change its STATUS to QUEUED. This will insert this procedure at the front of the queue and make it the next procedure to execute. QUEUED entries are just like SCHEDULED entries except their TIMESTAMP has expired (TIMESTAMP <= getdate()), a condition which means they are ready to run as soon as Sybercron "wakes up" and selects it from the CRON table.
You can select a RUNNING procedure and change its STATUS to KILL. This will, of course, kill that stored procedure. Note: If you're going to kill something, make sure it's the one you want to kill and be quick about it: a process ID can be reused almost immediately by the SQL Server.
Any other combination (for example, changing WAITING to SCHEDULED) is not allowed.
For a description of status values, see the section on the Normal Flow of Execution (below).
The name of your stored procedure. For RUNNING entries, the current command name (from sysprocesses) is appended to this name.
The title that you have specified. For E-mail, TITLE is also the subject of your mail.
The name of the PLATFORM that Syberron is to run from (SPOCK,KIRK,ASTRO).
The return result of your stored procedure. WAITING and RUNNING procedures will have a value of NULL (since they haven't returned). SCHEDULED and QUEUED entries will be blank in this field.
For QUEUED and SCHEDULED entries, this is the TIMESTAMP that it will be executed. For WAITING and RUNNING entries, this is the TIMESTAMP when it started. For COMPLETED and SUSPECT entries, this is the TIMESTAMP when it finished.
This field contains the total CPU time in ticks for COMPLETED and SUSPECT entries or the total accumulated CPU time in ticks for RUNNING entries. The field is blank for QUEUED and SCHEDULED entries.
For COMPLETED and SUSPECT entries this column represents the elapsed time of your stored procedure. For RUNNING and WAITING entries it represents the amount of time it has been running. For QUEUED entries, it represents the amount of time (as a negative value) that this procedure has been waiting to run. And for SCHEDULED entries it represents the amount time left before this procedure is selected for execution.

The buttons at the bottom of the screen allow you to scroll forward and backward through this display; for example, clicking the Backward button shows more COMPLETED entries while clicking the Forward button shows more SCHEDULED entries. The Refresh button resumes the default display. Regardless of the display you choose, WAITING and RUNNING entries are always displayed (when available).
Changing the STATUS from COMPLETED to SUSPECT (because the return result was less than zero) or from RUNNING to SUSPECT (because something serious has happened) is done in Sybase and not by Sybercron (since Sybercron could be dead at this point). If the SQL Server is dead, this won't occur until it is restarted (so don't expect any E-mail until it is).